[tuned] new release (2.1.0)

jvcelak jvcelak at fedoraproject.org
Mon Dec 3 10:41:46 UTC 2012


commit f25ae8698dfe197493d70df72864ad644b74f5c0
Author: Jan Vcelak <jvcelak at redhat.com>
Date:   Mon Dec 3 11:39:22 2012 +0100

    new release (2.1.0)

 sources    |    2 +-
 tuned.spec |   43 ++++++++++++++++++++++++++++++++++++++-----
 2 files changed, 39 insertions(+), 6 deletions(-)
---
diff --git a/sources b/sources
index b475df0..cc140dd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-1eb5d48524c1db7dacc35896f95c2a32  tuned-2.0.2.tar.bz2
+de0f9c9016cbd219e0434e58a2e964a3  tuned-2.1.0.tar.bz2
diff --git a/tuned.spec b/tuned.spec
index 085ac89..93d03d0 100644
--- a/tuned.spec
+++ b/tuned.spec
@@ -1,8 +1,8 @@
 Summary: A dynamic adaptive system tuning daemon
 Name: tuned
-Version: 2.0.2
+Version: 2.1.0
 Release: 1%{?dist}
-License: GPLv2
+License: GPLv2+
 # The source for this package was pulled from upstream git.  Use the
 # following commands to get the corresponding tarball:
 #  git clone git://git.fedorahosted.org/git/tuned.git
@@ -13,10 +13,11 @@ Source: tuned-%{version}.tar.bz2
 URL: https://fedorahosted.org/tuned/
 BuildArch: noarch
 BuildRequires: python, systemd-units
-Requires(post): systemd-units
+Requires(post): systemd-units, virt-what
 Requires(preun): systemd-units
 Requires(postun): systemd-units
-Requires: python-decorator, dbus-python, pygobject2
+Requires: python-decorator, dbus-python, pygobject2, /usr/bin/cpupower
+Requires: virt-what
 
 %description
 The tuned package contains a daemon that tunes system settings dynamically.
@@ -70,6 +71,16 @@ if [ $1 -eq 1 ]; then
 	/usr/bin/systemctl daemon-reload &>/dev/null || :
 fi
 
+# try to autodetect the best profile for the system in case there is none preset
+if [ ! -f /etc/tuned/active_profile -o -z "`cat /etc/tuned/active_profile 2>/dev/null`" ]
+then
+	PROFILE=`/usr/sbin/tuned-adm recommend 2>/dev/null`
+	[ "$PROFILE" ] || PROFILE=balanced
+	/usr/sbin/tuned-adm profile "$PROFILE" 2>/dev/null || echo -n "$PROFILE" > /etc/tuned/active_profile
+fi
+
+# convert active_profile from full path to name (if needed)
+sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile
 
 %preun
 # package removal, not upgrade
@@ -115,7 +126,7 @@ fi
 %{_sysconfdir}/dbus-1/system.d/com.redhat.tuned.conf
 %{_unitdir}/tuned.service
 %dir %{_localstatedir}/log/tuned
-%dir %{_localstatedir}/run/tuned
+%dir /run/tuned
 %{_mandir}/man5/tuned*
 %{_mandir}/man8/tuned*
 
@@ -149,6 +160,28 @@ fi
 %{_prefix}/lib/tuned/spindown-disk
 
 %changelog
+* Mon Dec 03 2012 Jan Vcelak <jvcelak at redhat.com> 2.1.0-1
+- new release:
+  - daemon: allow running without selected profile
+  - daemon: fix profile merging, allow only safe characters in profile names
+  - daemon: implement missing methods in DBus interface
+  - daemon: implement profile recommendation
+  - daemon: improve daemonization, PID file handling
+  - daemon: improved device matching in profiles, negation possible
+  - daemon: various internal improvements
+  - executables: check for EUID instead of UID
+  - executables: run python with -Es to increase security
+  - plugins: cpu - fix cpupower execution
+  - plugins: disk - fix option setting
+  - plugins: mounts - new, currently supports only barriers control
+  - plugins: sysctl - fix a bug preventing settings application
+  - powertop2tuned: speedup, fix crashes with non-C locales
+  - powertop2tuned: support for powertop 2.2 output
+  - profiles: progress on replacing scripts with plugins
+  - tuned-adm: bash completion - suggest profiles from all supported locations
+  - tuned-adm: complete switch to D-bus
+  - tuned-adm: full control to users with physical access
+
 * Mon Oct 08 2012 Jaroslav Škarvada <jskarvad at redhat.com> - 2.0.2-1
 - New version
 - Systemtap scripts moved to utils-systemtap subpackage


More information about the scm-commits mailing list