Bug#336936: initramfs-tools: suspend patch part 2
Package: initramfs-tools
Version: 0.37
Well now I've had time to actually test it, it seems there is one
additional buglet - the kernel actually wants the major/minor numbers
in decimal, not in hex prefixed by "0x".
Two little patches to the scripts to fix this. Suspend to disk tested
with 2.6.14rc5-mm1. Resume worked too :-)
Many thanks for this - I was dreading having to hack on initrd!
Adrian
--
Email: adrian@smop.co.uk -*- GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution -*- www.debian.org
Avoid working with children, animals and Microsoft "operating" systems
--- functions.orig 2005-10-26 07:53:32.000000000 +0100
+++ functions 2005-11-01 21:06:03.000000000 +0000
@@ -228,7 +228,7 @@
if [ -e /sys/power/resume ]; then
if [ -e "${resume}" ]; then
major_minor=$(ls -l ${resume} | \
- awk '{printf "0x%x:0x%x", $5, $6}')
+ awk '{printf "%d:%d", $5, $6}')
echo $major_minor >/sys/power/resume
fi
fi
--- local-premount/suspend.orig 2005-10-26 07:51:53.000000000 +0100
+++ local-premount/suspend 2005-11-01 21:06:18.000000000 +0000
@@ -24,6 +24,6 @@
fi
if [ -e /sys/power/resume ]; then
- major_minor=$(ls -l ${resume} | awk '{printf "0x%x:0x%x", $5, $6}')
+ major_minor=$(ls -l ${resume} | awk '{printf "%d:%d", $5, $6}')
echo $major_minor >/sys/power/resume
fi
Reply to: