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

Bug#573761: /usr/sbin/update-initramfs: misleading error message if crypto-root fs has snapshot



Package: initramfs-tools
Version: 0.93.4
Severity: normal
File: /usr/sbin/update-initramfs

Hi,

my system has its root FS on a crypted LV. Recently, before doing a
rather invasive update, I decided to take a snapshot of the root FS.
This confuses update-initramfs:

[29/526]mh@swivel:~/bigstuff/agent/running$ sudo lvcreate --snapshot --size 1G --name c_rootsnap /dev/swivel/c_root
  Logical volume "c_rootsnap" created
[30/527]mh@swivel:~/bigstuff/agent/running$ sudo update-initramfs -k 2.6.33-zgws1 -u
update-initramfs: Generating /boot/initrd.img-2.6.33-zgws1
mkinitramfs: for root /dev/mapper/root missing dm- /sys/block/ entry
mkinitramfs: workaround is MODULES=most
mkinitramfs: Error please report the bug
update-initramfs: failed for /boot/initrd.img-2.6.33-zgws1
[31/528]mh@swivel:~/bigstuff/agent/running$ sudo lvremove /dev/mapper/swivel-c_rootsnap
Do you really want to remove active logical volume c_rootsnap? [y/n]: y
  Logical volume "c_rootsnap" successfully removed
[32/529]mh@swivel:~/bigstuff/agent/running$ sudo update-initramfs -k 2.6.33-zgws1 -u
update-initramfs: Generating /boot/initrd.img-2.6.33-zgws1
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mdadm: no arrays defined in configuration file.
[33/530]mh@swivel:~/bigstuff/agent/running$

Greetings
Marc

-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-2.6.33-zgws1 root=/dev/mapper/root ro resume=/dev/mapper/swap1 quiet splash hpet=force video=radeon:force_sleep,1400x1050-24@60

-- /proc/filesystems
	ext3
	udf
	iso9660
	vfat

-- lsmod
Module                  Size  Used by
iwl3945                62453  0 
iwlcore                75506  1 iwl3945
mac80211              106524  2 iwl3945,iwlcore
cfg80211               73546  3 iwl3945,iwlcore,mac80211
iptable_filter          1030  0 
ipt_MASQUERADE          1130  8 
iptable_nat             2798  1 
nf_nat                 10767  2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4       7663  3 iptable_nat,nf_nat
nf_defrag_ipv4           799  1 nf_conntrack_ipv4
ip_tables               7397  2 iptable_filter,iptable_nat
vfat                    6820  0 
fat                    36008  1 vfat
isofs                  25174  0 
nls_utf8                 928  0 
udf                    62456  0 
usb_storage            29897  0 
tun                     8884  2 
binfmt_misc             4883  1 
rfcomm                 25525  6 
sco                     6231  2 
bnep                    7203  2 
l2cap                  25549  16 rfcomm,bnep
crc16                   1011  1 l2cap
vboxnetflt             10598  0 
vboxnetadp              5186  0 
vboxdrv               116590  2 vboxnetflt,vboxnetadp
nf_conntrack_netlink    12636  0 
nf_conntrack           39683  5 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4,nf_conntrack_netlink
nfnetlink               1838  6 nf_conntrack_netlink
ipt_ULOG                4461  1 
x_tables                9112  4 ipt_MASQUERADE,iptable_nat,ip_tables,ipt_ULOG
ppdev                   4294  0 
lp                      5768  0 
parport                12962  2 ppdev,lp
acpi_cpufreq            5055  1 
cpufreq_powersave        606  0 
cpufreq_userspace       1372  2 
cpufreq_conservative     7036  0 
cpufreq_ondemand        6169  0 
freq_table              1743  2 acpi_cpufreq,cpufreq_ondemand
8021q                  14027  0 
bridge                 35340  0 
stp                     1032  1 bridge
llc                     2613  2 bridge,stp
ipv6                  195862  38 
sr_mod                 11469  0 
cdrom                  25675  1 sr_mod
firewire_sbp2           9669  0 
snd_hda_codec_analog    46653  1 
snd_hda_intel          16009  4 
btusb                   8416  2 
snd_hda_codec          42520  2 snd_hda_codec_analog,snd_hda_intel
snd_pcm_oss            28573  0 
bluetooth              38935  9 rfcomm,sco,bnep,l2cap,btusb
snd_mixer_oss          11983  1 snd_pcm_oss
arc4                     994  2 
ecb                     1489  2 
snd_pcm                48251  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_dummy            959  0 
snd_seq_oss            21024  0 
radeon                543860  1 
snd_seq_midi            3496  0 
snd_rawmidi            13140  1 snd_seq_midi
snd_seq_midi_event      3968  2 snd_seq_oss,snd_seq_midi
pcmcia                 23354  0 
snd_seq                35503  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
ttm                    34114  1 radeon
sdhci_pci               5047  0 
sdhci                  11863  1 sdhci_pci
drm_kms_helper         18609  1 radeon
snd_timer              13290  2 snd_pcm,snd_seq
snd_seq_device          3965  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
firewire_ohci          17736  0 
yenta_socket            8878  1 
mmc_core               39316  1 sdhci
ata_generic             2063  0 
drm                   116981  3 radeon,ttm,drm_kms_helper
rtc_cmos                6858  0 
i2c_i801                5880  0 
snd                    36436  19 snd_hda_codec_analog,snd_hda_intel,snd_hda_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
intel_agp              19857  0 
rsrc_nonstatic          7483  1 yenta_socket
tg3                    96667  0 
rtc_core                9641  1 rtc_cmos
firewire_core          33273  2 firewire_sbp2,firewire_ohci
video                  15566  0 
firmware_class          5326  4 iwl3945,radeon,pcmcia,tg3
rtc_lib                 1349  1 rtc_core
i2c_algo_bit            3715  1 radeon
pcmcia_core            22364  3 pcmcia,yenta_socket,rsrc_nonstatic
led_class               1873  1 sdhci
i2c_core               12538  5 radeon,drm_kms_helper,drm,i2c_i801,i2c_algo_bit
uhci_hcd               16188  0 
rng_core                2398  0 
ehci_hcd               26602  0 
rfkill                 11140  3 cfg80211,bluetooth
agpgart                20836  3 ttm,drm,intel_agp
soundcore               4143  1 snd
ata_piix               17129  0 
crc_itu_t               1015  2 udf,firewire_core
libphy                 12387  1 tg3
snd_page_alloc          5181  2 snd_hda_intel,snd_pcm
pcspkr                  1259  0 
psmouse                28437  0 
output                  1292  1 video
evdev                   5985  16 
ext3                   87857  8 
jbd                    33535  1 ext3
mbcache                 3990  1 ext3
sha256_generic         11161  18 
aes_i586                6860  18 
aes_generic            25762  1 aes_i586
cbc                     1995  9 
dm_crypt                8931  9 
dm_mirror              10125  0 
dm_region_hash          5776  1 dm_mirror
dm_log                  7044  2 dm_mirror,dm_region_hash
dm_snapshot            24771  9 
dm_mod                 46734  73 dm_crypt,dm_mirror,dm_log,dm_snapshot
raid456                40328  0 
async_raid6_recov       2806  1 raid456
async_pq                1392  2 raid456,async_raid6_recov
raid6_pq               77980  2 async_raid6_recov,async_pq
async_xor                865  3 raid456,async_raid6_recov,async_pq
xor                    13829  1 async_xor
async_memcpy             586  2 raid456,async_raid6_recov
async_tx                1169  5 raid456,async_raid6_recov,async_pq,async_xor,async_memcpy
raid1                  16725  0 
md_mod                 71947  2 raid456,raid1
sd_mod                 22964  2 
ahci                   27304  2 
libata                118304  3 ata_generic,ata_piix,ahci

-- /etc/kernel-img.conf
do_symlinks = no
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = /usr/sbin/update-grub
postrm_hook   = /usr/sbin/update-grub

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

-- /etc/crypttab
# <target device> <source device>	      <key file> <options>
root	  	  /dev/mapper/swivel-c_root      none  luks,keyscript=/etc/keyscript_swivel
boot	  	  /dev/mapper/swivel-c_boot      none  luks,keyscript=/etc/keyscript_swivel
swap0		  /dev/mapper/swivel-c_swap0     none  luks,keyscript=/etc/keyscript_swivel
usr		  /dev/mapper/swivel-c_usr       none  luks,keyscript=/etc/keyscript_swivel
var		  /dev/mapper/swivel-c_var       none  luks,keyscript=/etc/keyscript_swivel
home		  /dev/mapper/swivel-c_home      none  luks,keyscript=/etc/keyscript_swivel
bigstuff	  /dev/mapper/swivel-c_bigstuff  none  luks,keyscript=/etc/keyscript_swivel
vm		  /dev/mapper/swivel-c_vm        none  luks,keyscript=/etc/keyscript_swivel
scyw00225	  /dev/mapper/swivel-c_scyw00225 none  luks,keyscript=/etc/keyscript_swivel

-- /sys/block
dm-0
dm-1
dm-10
dm-11
dm-12
dm-13
dm-14
dm-15
dm-16
dm-17
dm-18
dm-19
dm-2
dm-20
dm-21
dm-22
dm-26
dm-27
dm-28
dm-29
dm-3
dm-30
dm-31
dm-32
dm-4
dm-5
dm-6
dm-7
dm-8
dm-9
sda


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

Kernel: Linux 2.6.33-zgws1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages initramfs-tools depends on:
ii  cpio                         2.11-1      GNU cpio -- a program to manage ar
ii  findutils                    4.4.2-1     utilities for finding files--find,
ii  klibc-utils                  1.5.15-1    small utilities built with klibc f
ii  module-init-tools            3.12~pre2-1 tools for managing Linux kernel mo
ii  udev                         151-2       /dev/ and hotplug management daemo

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

initramfs-tools suggests no packages.

-- no debconf information



Reply to: