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

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



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 
drm                    66184  2 i915
michael_mic             3072  4 
arc4                    2592  4 
ecb                     3392  4 
ip6table_filter         3200  0 
ip6_tables             12144  1 ip6table_filter
ipv6                  235876  14 
nf_conntrack_ipv4      13036  1 
xt_state                2784  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_oss            33568  0 
snd_mixer_oss          13088  1 snd_pcm_oss
snd_pcm                63396  2 snd_hda_intel,snd_pcm_oss
snd_seq_dummy           3428  0 
snd_seq_oss            25760  0 
snd_seq_midi            6496  0 
snd_rawmidi            19264  1 snd_seq_midi
snd_seq_midi_event      7200  2 snd_seq_oss,snd_seq_midi
snd_seq                42224  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
snd                    46372  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_i801                8688  0 
v4l1_compat            13028  2 uvcvideo,videodev
ieee80211_crypt_tkip     8832  0 
psmouse                33104  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 
battery                10948  0 
button                  6864  0 
intel_agp              23268  1 
agpgart                29576  3 drm,intel_agp
evdev                   8768  10 
ext3                  106280  3 
jbd                    40212  1 ext3
mbcache                 7876  1 ext3
sha256_generic         12128  0 
aes_i586                8512  6 
aes_generic            30024  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_storage            76864  0 
ahci                   24428  4 
libata                141248  1 ahci
scsi_mod              130124  5 sg,sr_mod,sd_mod,usb_storage,libata
dock                    9072  1 libata
uhci_hcd               19504  0 
ehci_hcd               29420  0 
r8169                  24612  0 
usbcore               119184  5 uvcvideo,usb_storage,uhci_hcd,ehci_hcd
thermal                15996  0 
processor              33536  3 thermal
fan                     4932  0 
thermal_sys            11624  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   none            luks
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 2.6.26-1-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages initramfs-tools depends on:
ii  cpio                          2.9-13     GNU cpio -- a program to manage ar
ii  findutils                     4.4.0-2    utilities for finding files--find,
ii  klibc-utils                   1.5.12-2   small utilities built with klibc f
ii  module-init-tools             3.4-1      tools for managing Linux kernel mo
ii  udev                          0.125-7    /dev/ and hotplug management daemo

Versions of packages initramfs-tools recommends:
ii  busybox                       1:1.10.2-2 Tiny utilities for small and embed

initramfs-tools suggests no packages.

-- no debconf information



Reply to: