pm-utils: Remove some powersave hooks
In particular, this should unbreak nix.readOnlyStore.
This commit is contained in:
parent
7db0642961
commit
ed0fde7eb5
@ -8,8 +8,8 @@ let
|
|||||||
|
|
||||||
sbinPath = stdenv.lib.makeSearchPath "sbin"
|
sbinPath = stdenv.lib.makeSearchPath "sbin"
|
||||||
[ procps ];
|
[ procps ];
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "pm-utils-1.4.1";
|
name = "pm-utils-1.4.1";
|
||||||
@ -30,12 +30,22 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace pm/pm-functions.in --replace '/sbin:/usr/sbin:/bin:/usr/bin' '$PATH:${binPath}:${sbinPath}'
|
substituteInPlace pm/pm-functions.in --replace '/sbin:/usr/sbin:/bin:/usr/bin' '$PATH:${binPath}:${sbinPath}'
|
||||||
|
|
||||||
substituteInPlace src/pm-action.in --replace 'tr ' '${coreutils}/bin/tr '
|
substituteInPlace src/pm-action.in --replace 'tr ' '${coreutils}/bin/tr '
|
||||||
|
|
||||||
substituteInPlace pm/sleep.d/00logging --replace /bin/uname "$(type -P uname)"
|
substituteInPlace pm/sleep.d/00logging --replace /bin/uname "$(type -P uname)"
|
||||||
|
|
||||||
substituteInPlace pm/sleep.d/90clock --replace /sbin/hwclock hwclock
|
substituteInPlace pm/sleep.d/90clock --replace /sbin/hwclock hwclock
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postInstall =
|
||||||
|
''
|
||||||
|
# Remove some hooks that have doubtful usefulness. See
|
||||||
|
# http://zinc.canonical.com/~cking/power-benchmarking/pm-utils-results/results.txt.
|
||||||
|
# In particular, journal-commit breaks things if you have
|
||||||
|
# read-only bind mounts, since it ends up remounting the
|
||||||
|
# underlying filesystem read-only.
|
||||||
|
rm $out/lib/pm-utils/power.d/{journal-commit,readahead}
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://pm-utils.freedesktop.org/wiki/;
|
homepage = http://pm-utils.freedesktop.org/wiki/;
|
||||||
description = "A small collection of scripts that handle suspend and resume on behalf of HAL";
|
description = "A small collection of scripts that handle suspend and resume on behalf of HAL";
|
||||||
|
Loading…
Reference in New Issue
Block a user