Package: initrd-tools Version: 0.1.81.1 Severity: normal Tags: patch When trying to boot off an initrd created for a LVM2 root with a devfs-less kernel, the LVM tools attempt and fail to create device nodes under /dev/mapper (since cramfs is read-only).
I know this has been declared "fixed" by telling everybody to move on to initramfs-tools (I must say I find it a dubious practice to close bugs that way), but this is of little solace to those of us running sarge. So, I'm attaching a quick and dirty patch to mkinitrd that solves this issue. It's ugly and produces some warnings on boot, but it works. (It shouldn't break thinks for devfs-enabled kernels either, but I haven't tested that assumption.) Simply apply the patch, run dpkg-divert, and you're all set. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.14-3 Locale: LANG=en_CA, LC_CTYPE=en_CA (charmap=ISO-8859-1) Versions of packages initrd-tools depends on: ii coreutils [fileutils] 5.93-5 The GNU core utilities ii cpio 2.6-10 GNU cpio -- a program to manage ar ii cramfsprogs 1.1-6 Tools for CramFs (Compressed ROM F ii dash 0.5.3-2 The Debian Almquist Shell ii util-linux 2.12r-6 Miscellaneous system utilities initrd-tools recommends no packages. -- debconf-show failed
--- mkinitrd.distrib 2005-05-26 19:44:00.000000000 -0400 +++ mkinitrd 2006-02-21 18:04:54.000000000 -0500 @@ -305,7 +305,9 @@ cat /var/lvm.conf > /etc/lvm/lvm.conf fi mount -nt devfs devfs /dev + mount -nt tmpfs tmpfs /dev/mapper vgchange -a y ${vg} + umount /dev/mapper umount /dev umount -n /var umount -n /etc/lvm @@ -1277,7 +1279,7 @@ esac cd initrd - mkdir -p dev2 devfs etc keyscripts mnt proc scripts sys tmp var + mkdir -p dev/mapper dev2 devfs etc keyscripts mnt proc scripts sys tmp var > etc/mtab