summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-06-22 00:14:07 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-06-22 00:14:07 +0200
commitdc3923c6f8d61ac28f9b1edb73b643aa6e7e67c2 (patch)
tree6935f92d53d69ba0a7c0e58a7f816986e51a5d5b
parentgkbuilds/dropbear: Enable AES GCM support (diff)
downloadgenkernel-dc3923c6f8d61ac28f9b1edb73b643aa6e7e67c2.tar.gz
genkernel-dc3923c6f8d61ac28f9b1edb73b643aa6e7e67c2.tar.bz2
genkernel-dc3923c6f8d61ac28f9b1edb73b643aa6e7e67c2.zip
defaults/initrd.scripts: Log what is happening in *_resume functions
Bug: https://bugs.gentoo.org/728118 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rw-r--r--defaults/initrd.scripts13
1 files changed, 12 insertions, 1 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index 2e3632bf..c03629d3 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -2525,7 +2525,13 @@ do_resume() {
swsusp_resume() {
# determine swap resume partition
local device=$(ls -lL "${REAL_RESUME}" | sed 's/\ */ /g' | cut -d \ -f 5-6 | sed 's/,\ */:/')
- [ -f /sys/power/resume ] && echo "${device}" > /sys/power/resume
+ if [ -f /sys/power/resume ]
+ then
+ log_msg "Trying to resume using swsusp ..."
+ log_msg "COMMAND: 'echo \"${device}\" > /sys/power/resume'"
+ echo "${device}" > /sys/power/resume
+ log_msg "System is not resuming, probably because it wasn't suspended; Continue normal booting ..."
+ fi
}
tuxonice_resume() {
@@ -2585,8 +2591,13 @@ tuxonice_resume() {
fi
fi
+
+ log_msg "Trying to resume using TuxOnIce ..."
+ log_msg "COMMAND: 'echo \"${REAL_RESUME}\" > ${tuxonice_resumedev}'"
echo "${REAL_RESUME}" > "${tuxonice_resumedev}"
+ log_msg "COMMAND: 'echo > ${tuxonice_do_resume}'"
echo > "${tuxonice_do_resume}"
+ log_msg "System is not resuming, probably because it wasn't suspended; Continue normal booting ..."
}
find_loop() {