Bug#418652: initramfs-tools: does not build usable initrd with lvm2 2.02.24
Package: initramfs-tools
Version: 0.85g
Severity: important
Tags: patch
I just upgraded a ton of stuff (including LVM) after it hit testing
folllowing the etch release. :-) The new LVM version uses a different
file layout and consequently the lvm2 hook tries to grab the wrong file
(which no longer exists) and silently builds an initrd which is missing
the vgchange command :-p
The following patch fixes this information for my system (but of course
would break a system that had not upgraded LVM).
--- /usr/share/initramfs-tools/hooks/lvm2.old 2006-12-02 12:11:58.000000000 -0500
+++ /usr/share/initramfs-tools/hooks/lvm2 2007-04-10 20:46:24.000000000 -0400
@@ -14,13 +14,13 @@
;;
esac
-if [ ! -x /sbin/vgchange -a ! -d /lib/lvm-200 ]; then
+if [ ! -x /sbin/vgchange -a ! -x /sbin/lvm ]; then
exit 0
fi
. /usr/share/initramfs-tools/hook-functions
-copy_exec /lib/lvm-200/vgchange /sbin
+copy_exec /sbin/lvm /sbin/vgchange
for x in dm_mod dm_snapshot dm_mirror; do
manual_add_modules ${x}
Thanks,
Scott Bailey
scott@cartasoft.com
-- Package-specific info:
-- /proc/cmdline
root=/dev/md0 ro
-- /proc/filesystems
cramfs
reiserfs
ext3
-- lsmod
Module Size Used by
vmnet 34796 7
vmmon 104236 0
nfs 203980 0
nfsd 199856 17
exportfs 6080 1 nfsd
lockd 55240 3 nfs,nfsd
nfs_acl 3904 2 nfs,nfsd
sunrpc 139772 13 nfs,nfsd,lockd,nfs_acl
xt_multiport 3712 1
iptable_filter 3392 1
ip_tables 13476 1 iptable_filter
x_tables 13636 2 xt_multiport,ip_tables
ppdev 8964 0
lp 11300 0
ipv6 228000 62
decnet 72196 5 [permanent]
amd64_agp 12292 0
agpgart 30216 1 amd64_agp
usbkbd 7104 0
tsdev 7808 0
snd_hda_intel 17620 0
snd_hda_codec 138816 1 snd_hda_intel
snd_pcm 68996 2 snd_hda_intel,snd_hda_codec
snd_timer 21316 1 snd_pcm
snd 47524 4 snd_hda_intel,snd_hda_codec,snd_pcm,snd_timer
soundcore 9568 1 snd
serio_raw 6980 0
snd_page_alloc 9928 2 snd_hda_intel,snd_pcm
psmouse 35336 0
i2c_viapro 8596 0
parport_pc 32612 1
parport 33672 3 ppdev,lp,parport_pc
shpchp 33312 0
pci_hotplug 29056 1 shpchp
i2c_core 20096 1 i2c_viapro
evdev 9408 1
pcspkr 3392 0
st 35292 2
sg 31836 0
rtc 12788 0
ext3 120584 16
jbd 52968 1 ext3
mbcache 8644 1 ext3
dm_mirror 19600 0
dm_snapshot 15904 0
raid1 21632 2
md_mod 71060 3 raid1
ide_generic 1728 0 [permanent]
ch 14920 0
ide_cd 36576 0
cdrom 33056 1 ide_cd
usb_storage 72832 0
via82cxxx 8708 0 [permanent]
tulip 47072 0
sata_via 10372 4
BusLogic 64884 2
via_rhine 23112 0
mii 5696 1 via_rhine
libata 90772 1 sata_via
generic 5764 0 [permanent]
ide_core 110984 5 ide_generic,ide_cd,usb_storage,via82cxxx,generic
ehci_hcd 28488 0
uhci_hcd 21580 0
usbcore 113412 5 usbkbd,usb_storage,ehci_hcd,uhci_hcd
thermal 13896 0
processor 29128 1 thermal
fan 5124 0
reiserfs 214080 0
dm_mod 50776 35 dm_mirror,dm_snapshot
sd_mod 19456 6
scsi_mod 124872 7 st,sg,ch,usb_storage,BusLogic,libata,sd_mod
-- kernel-img.conf
# Do not create symbolic links in /
do_symlinks = Yes
do_initrd = Yes
do_bootloader = No
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (800, 'unstable'), (700, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-4-k7 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages initramfs-tools depends on:
ii busybox 1:1.1.3-4 Tiny utilities for small and embed
ii cpio 2.7-1 GNU cpio -- a program to manage ar
ii klibc-utils 1.5-2 small statically-linked utilities
ii module-init-tools 3.3-pre4-2 tools for managing Linux kernel mo
ii udev 0.105-4 /dev/ and hotplug management daemo
initramfs-tools recommends no packages.
-- no debconf information
Reply to: