summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-12-22 06:43:34 +0000
committerintrigeri <intrigeri@boum.org>2016-12-22 13:15:54 +0000
commitbe9b18da8681cefd1a73de18dc44b15813f6281e (patch)
tree2663fa6f68f221cd5e8852c2f07434b3431653d6
parenta6a06c0a94dd282ef232b66ca9a62c6d293cbfe3 (diff)
Display more information after wiping memory (refs: #11786).
The idea is to enable: * users to report more useful bugs; * developers to better understand the failure we see in the test suite.
-rwxr-xr-xconfig/chroot_local-includes/usr/share/initramfs-tools/scripts/init-top/memory_wipe3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/chroot_local-includes/usr/share/initramfs-tools/scripts/init-top/memory_wipe b/config/chroot_local-includes/usr/share/initramfs-tools/scripts/init-top/memory_wipe
index 0967171..bc429d9 100755
--- a/config/chroot_local-includes/usr/share/initramfs-tools/scripts/init-top/memory_wipe
+++ b/config/chroot_local-includes/usr/share/initramfs-tools/scripts/init-top/memory_wipe
@@ -48,6 +48,7 @@ if [ -n "${sdmem}" ] ; then
done
# Wait for sdmem jobs to finish.
wait
+ echo "Memory has been wiped!"
fi
if [ "${sdmemdebug}" = 1 ] ; then
@@ -58,9 +59,11 @@ fi
case "${sdmem}" in
halt)
+ echo "Powering off..."
/sbin/poweroff -fd
;;
reboot)
+ echo "Restarting..."
/sbin/reboot -fd
;;
*)