[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#588466: marked as done (klibc-utils: kernel panic when resume failed and normal boot continues)



Your message dated Wed, 25 Aug 2010 22:31:55 +0200
with message-id <20100825203154.GC22010@stro.at>
and subject line Re: Bug#588466: klibc-utils: kernel panic when resume failed and normal boot continues
has caused the Debian Bug report #588466,
regarding klibc-utils: kernel panic when resume failed and normal boot continues
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
588466: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588466
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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 �ion 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

--- End Message ---
--- Begin Message ---
Version: 0.98

this got closed for the initramfs-tools that is in sid and unstable:
  * [a4e1a9e] initramfs-tools: only allow hook scripts to errexit on
    mkinitramfs


noexec /tmp aka not precached initramfs should no longer error out
on run.

changelog lost the closes, sorry for that, thanks for the report.

-- 
maks


--- End Message ---

Reply to: