Bug#441860: initramfs-tools: Resume from swap partition in LVM doesn't work
Package: initramfs-tools
Version: 0.91
Severity: important
I recently changed my setup and my swap partition has been integrated into
LVM.
Since then, I can't resume from suspend-to-disk (it's been quite some time
since I last suspended to disk, so something else might be the root cause
in reality). The image is written in the swap space (this is confirmed by
the fact that I have no swap at the next boot until I mkswap / swapon
manually).
I tried to debug this but unfortunately I'm unable to understand how the
"resume" parameter is supposed to be defined. I modified
/etc/initramfs-tools/conf.d/resume to match with the change I made:
$ cat /etc/initramfs-tools/conf.d/resume
RESUME=/dev/mapper/vg_home-lv_swap
And I regenerated the initrds with "update-initramfs -k all -u" but this
didn't help.
I booted with "break=premount" to get a shell at the init-premount time and I
noticed that I had no "resume" or "RESUME" variable set. I also noticed
that none of the hard disk drivers were loaded at that time.
I grepped for RESUME in /etc/initramfs-tools/ and
/usr/share/initramfs-tools/ but found no obvious use of that variable
(except it's sourced by the "init" script). Where is it used?
Do I have to add the resume parameter to the kernel command line? If yes,
it means that I had those and they got lost... any idea how ? and is there
some integration with grub and/or d-i that I missed?
Feel free to ask me for any info/tests/etc.
(FYI, my setup is *without* uswsusp, I also tried with uswsusp installed
but it failed to find the swap device)
-- Package-specific info:
-- /proc/cmdline
root=/dev/hda5 ro
-- /proc/filesystems
cramfs
ext3
-- lsmod
Module Size Used by
i915 22432 2
drm 76020 3 i915
binfmt_misc 11112 1
rfcomm 36280 0
l2cap 22432 5 rfcomm
ppdev 8676 0
lp 10980 0
button 7920 0
ac 5188 2
battery 9988 0
cpufreq_stats 5120 0
cpufreq_powersave 1792 0
cpufreq_ondemand 8300 1
cpufreq_conservative 6888 0
ipv6 236964 12
ipt_MASQUERADE 3616 2
iptable_nat 7204 1
nf_nat 17964 2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4 17772 2 iptable_nat
nf_conntrack 60424 4 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4
nfnetlink 5752 3 nf_nat,nf_conntrack_ipv4,nf_conntrack
ip_tables 12260 1 iptable_nat
x_tables 14372 3 ipt_MASQUERADE,iptable_nat,ip_tables
tun 10560 1
i8k 5976 1
speedstep_centrino 9572 0
freq_table 4512 3 cpufreq_stats,cpufreq_ondemand,speedstep_centrino
cpufreq_userspace 4128 0
ide_generic 1216 0 [permanent]
ide_cd 36416 0
snd_intel8x0m 16684 0
snd_seq_dummy 3748 0
snd_seq_oss 29408 0
snd_seq_midi 8160 0
snd_rawmidi 22624 1 snd_seq_midi
snd_intel8x0 32124 1
snd_ac97_codec 92836 2 snd_intel8x0m,snd_intel8x0
pcmcia 37100 0
snd_seq_midi_event 6880 2 snd_seq_oss,snd_seq_midi
ac97_bus 2272 1 snd_ac97_codec
snd_pcm_oss 39200 0
snd_mixer_oss 15424 1 snd_pcm_oss
ipw2200 131396 0
snd_seq 46320 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_seq_device 7692 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
ieee80211 31592 1 ipw2200
ieee80211_crypt 5792 1 ieee80211
intel_agp 23188 1
psmouse 36016 0
parport_pc 33796 1
parport 33960 3 ppdev,lp,parport_pc
iTCO_wdt 9924 0
tsdev 7968 0
firmware_class 9504 2 pcmcia,ipw2200
snd_pcm 72324 4 snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer 21028 2 snd_seq,snd_pcm
hci_usb 16220 2
yenta_socket 24844 1
rsrc_nonstatic 11968 1 yenta_socket
pcmcia_core 37108 3 pcmcia,yenta_socket,rsrc_nonstatic
agpgart 31912 3 drm,intel_agp
bluetooth 49348 7 rfcomm,l2cap,hci_usb
serio_raw 6692 0
pcspkr 3104 0
rtc 12856 0
joydev 9568 0
snd 48324 13 snd_intel8x0m,snd_seq_oss,snd_rawmidi,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_pcm,snd_timer
soundcore 7520 1 snd
evdev 9312 7
snd_page_alloc 9512 3 snd_intel8x0m,snd_intel8x0,snd_pcm
ext3 121224 2
jbd 55336 1 ext3
mbcache 8260 1 ext3
sg 32668 0
sr_mod 16516 1
cdrom 32832 2 ide_cd,sr_mod
usb_storage 76608 1
usbhid 25792 0
hid 25248 1 usbhid
dm_mirror 20928 0
dm_snapshot 16516 0
dm_mod 52160 7 dm_mirror,dm_snapshot
ide_disk 16512 5
ata_generic 7556 0
libata 115664 1 ata_generic
scsi_mod 136620 4 sg,sr_mod,usb_storage,libata
piix 8868 0 [permanent]
generic 4836 0 [permanent]
ide_core 113764 6 ide_generic,ide_cd,usb_storage,ide_disk,piix,generic
ehci_hcd 30796 0
uhci_hcd 22960 0
usbcore 125096 6 hci_usb,usb_storage,usbhid,ehci_hcd,uhci_hcd
tg3 100260 0
thermal 13416 0
processor 31016 2 speedstep_centrino,thermal
fan 4836 0
-- /etc/kernel-img.conf
postinst_hook = /usr/sbin/update-grub
postrm_hook = /usr/sbin/update-grub
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages initramfs-tools depends on:
ii cpio 2.9-3 GNU cpio -- a program to manage ar
ii klibc-utils 1.5.7-1 small statically-linked utilities
ii module-init-tools 3.3-pre11-4 tools for managing Linux kernel mo
ii udev 0.114-2 /dev/ and hotplug management daemo
Versions of packages initramfs-tools recommends:
ii busybox 1:1.1.3-5 Tiny utilities for small and embed
-- no debconf information
Reply to: