Bug#521761: initramfs-tools: resume from hibernate fails with encrypted swap

2009-03-29 Thread Moy Easwaran
Package: initramfs-tools
Version: 0.92o
Severity: important


I used the standard installation settings for encrypted partitions
(/, /home, and swap), but resuming from hiberation fails.  I'm sorry I
can't spare time to flesh out the following patch, but I hope it'll
give someone an idea of where to look.  This worked for me.  I don't
use LVM and my swap partition is of course /dev/sda5.  This is in the
mountroot function right after root has been mounted.

# diff initrd.orig/scripts/local initrd/scripts/local
104a105,111
 ##
 # MY RESUME:
 log_begin_msg MY_RESUME
 cryptsetup luksOpen /dev/sda5 sda5_crypt
 log_end_msg
 ##



-- Package-specific info:
-- /proc/cmdline
resume=/dev/mapper/sda5_crypt root=/dev/mapper/sda6_crypt ro vga=792

-- /proc/filesystems
ext3
fuseblk

-- lsmod
Module  Size  Used by
i915   26112  1 
drm66184  2 i915
michael_mic 3072  4 
arc42592  4 
ecb 3392  4 
ip6table_filter 3200  0 
ip6_tables 12144  1 ip6table_filter
ipv6  235876  14 
nf_conntrack_ipv4  13036  1 
xt_state2784  1 
nf_conntrack   56276  2 nf_conntrack_ipv4,xt_state
iptable_filter  3392  1 
ip_tables  10928  1 iptable_filter
x_tables   14052  3 ip6_tables,xt_state,ip_tables
fuse   43676  1 
loop   13516  0 
joydev  9248  0 
snd_hda_intel 325112  1 
snd_pcm_oss33568  0 
snd_mixer_oss  13088  1 snd_pcm_oss
snd_pcm63396  2 snd_hda_intel,snd_pcm_oss
snd_seq_dummy   3428  0 
snd_seq_oss25760  0 
snd_seq_midi6496  0 
snd_rawmidi19264  1 snd_seq_midi
snd_seq_midi_event  7200  2 snd_seq_oss,snd_seq_midi
snd_seq42224  6 
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer  18568  2 snd_pcm,snd_seq
snd_seq_device  7148  5 
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd46372  11 
snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
uvcvideo   46536  0 
pcspkr  3200  0 
compat_ioctl32  2080  1 uvcvideo
serio_raw   5508  0 
videodev   28288  1 uvcvideo
soundcore   7136  1 snd
i2c_i8018688  0 
v4l1_compat13028  2 uvcvideo,videodev
ieee80211_crypt_tkip 8832  0 
psmouse33104  0 
i2c_core   20596  1 i2c_i801
snd_page_alloc  8648  2 snd_hda_intel,snd_pcm
wl   1476424  0 
ieee80211_crypt 5892  2 ieee80211_crypt_tkip,wl
video  17200  0 
output  3680  1 video
wmi 7208  0 
ac  4964  0 
battery10948  0 
button  6864  0 
intel_agp  23268  1 
agpgart29576  3 drm,intel_agp
evdev   8768  10 
ext3  106280  3 
jbd40212  1 ext3
mbcache 7876  1 ext3
sha256_generic 12128  0 
aes_i5868512  6 
aes_generic30024  1 aes_i586
cbc 4032  3 
dm_crypt   11940  1 
dm_mod 46952  7 dm_crypt
crypto_blkcipher   16004  6 ecb,cbc,dm_crypt
sg 27732  0 
sr_mod 14084  0 
cdrom  30944  1 sr_mod
sd_mod 22968  5 
usb_storage76864  0 
ahci   24428  4 
libata141248  1 ahci
scsi_mod  130124  5 sg,sr_mod,sd_mod,usb_storage,libata
dock9072  1 libata
uhci_hcd   19504  0 
ehci_hcd   29420  0 
r8169  24612  0 
usbcore   119184  5 uvcvideo,usb_storage,uhci_hcd,ehci_hcd
thermal15996  0 
processor  33536  3 thermal
fan 4932  0 
thermal_sys11624  4 video,thermal,processor,fan

-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook   = update-grub

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto

-- /etc/crypttab
backup  /dev/sdc1   /etc/backup.key luks
sda5_crypt  /dev/sda5   /etc/swap.key   luks
sda6_crypt  /dev/sda6   noneluks
sda7_crypt  /dev/sda7   /etc/home.key   luks


-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 

Processed: Re: Bug#521761: initramfs-tools: resume from hibernate fails with encrypted swap

2009-03-29 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 reassign 521761 cryptsetup
Bug#521761: initramfs-tools: resume from hibernate fails with encrypted swap
Bug reassigned from package `initramfs-tools' to `cryptsetup'.

 stop
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org