Package: klibc-utils
Version: 1.5.18-1
Severity: normal
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

all my newly built kernels failed to boot with the following message:
[...]
kinit: No resume image, doing normal boot...
E: /scripts/local-premount/resume failed with return 255
Kernel panic - not syncing: Attempted to kill init!

Attached patch fixes the issue by falling back gracefully to normal
booting of the system.

My swap partition is crypted btw:
$ cat /etc/crypttab | grep swap
cswap           /dev/mapper/grog-swap_1 /dev/urandom    swap
$ cat /etc/fstab | grep swap
/dev/mapper/cswap       none    swap    sw              0       0

As a sidenote: I do not understand why my system is trying to resume
from a crypted swap �artition anyway.
It tries this everytime, even though the system has always been
rebooted cleanly without suspending anything to the swap partition.

Regards,
  Bastian

- -- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32grog29 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages klibc-utils depends on:
ii  libklibc                      1.5.18-1   minimal libc subset for use with i

klibc-utils recommends no packages.

klibc-utils suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkw2GyMACgkQeBwlBDLsbz68KQCgoTLCzcqmqX0z06gv3C7r4Mbe
ps0AnR39TgIKejoEuUpSBEimvB4XyIFU
=xtMH
-----END PGP SIGNATURE-----
--- /usr/share/initramfs-tools/scripts/local-premount/resume~   2010-07-07 
23:13:20.000000000 +0200
+++ /usr/share/initramfs-tools/scripts/local-premount/resume    2010-07-08 
20:29:31.000000000 +0200
@@ -58,6 +58,13 @@
 # hardcode path, uswsusp ships an resume binary too
 if [ -n "${resume_offset}" ]; then
        /bin/resume ${resume} ${resume_offset}
+       res=$?
 else
        /bin/resume ${resume}
+       res=$?
 fi
+if [ $res -eq -1 ]; then
+       # do not fail when falling back to normal boot
+       exit 0
+fi
+exit $res

Reply via email to