Shut up "failed to resume" warning if there is no resume device
This commit is contained in:
parent
be5d3a59dd
commit
d882e19662
|
@ -168,7 +168,7 @@ if test -e /sys/power/tuxonice/resume; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -e /sys/power/resume -a -e /sys/power/disk; then
|
if test -n "@resumeDevice@" -a -e /sys/power/resume -a -e /sys/power/disk; then
|
||||||
echo "@resumeDevice@" > /sys/power/resume 2> /dev/null || echo "failed to resume..."
|
echo "@resumeDevice@" > /sys/power/resume 2> /dev/null || echo "failed to resume..."
|
||||||
echo shutdown > /sys/power/disk
|
echo shutdown > /sys/power/disk
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -229,12 +229,14 @@ in
|
||||||
options = {
|
options = {
|
||||||
|
|
||||||
boot.resumeDevice = mkOption {
|
boot.resumeDevice = mkOption {
|
||||||
default = "";
|
type = types.nullOr types.str;
|
||||||
example = "0:0";
|
default = null;
|
||||||
description = "
|
example = "8:2";
|
||||||
Device for manual resume attempt during boot. Looks like
|
description = ''
|
||||||
major:minor. ls -l /dev/SWAP_PARTION shows them.
|
Device for manual resume attempt during boot, specified using
|
||||||
";
|
the device's major and minor number as
|
||||||
|
<literal><replaceable>major</replaceable>:<replaceable>minor</replaceable></literal>.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd.checkJournalingFS = mkOption {
|
boot.initrd.checkJournalingFS = mkOption {
|
||||||
|
|
Loading…
Reference in New Issue