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

Bug#284763: initrd-tools: md and devfs



Package: initrd-tools
Version: 0.1.74
Severity: normal
Tags: patch

Hi,

I had to apply the attached (dirty, quickfix) patch to be able to get
initrd-tools to work with mdadm on a 2.6.9 kernel compiled without devfs
support.

/torkel

-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.8-hpc2n-amd64-k8-smp
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages initrd-tools depends on:
ii  coreutils [fileutils]         5.2.1-2    The GNU core utilities
ii  cpio                          2.5-1.1    GNU cpio -- a program to manage ar
ii  cramfsprogs                   1.1-6      Tools for CramFs (Compressed ROM F
ii  dash                          0.5.1-2    The Debian Almquist Shell
ii  util-linux                    2.12-7.1   Miscellaneous system utilities

-- no debconf information
--- mkinitrd.orig	2004-12-08 11:26:35.437843697 +0100
+++ mkinitrd	2004-12-08 11:26:10.337842457 +0100
@@ -175,7 +175,9 @@
 	)"
 
 	printf '%s\n' $devices > getroot
-	echo mdadm -A /devfs/md/$minor -R -u $uuid $devices \
+	echo /dev/md$minor >&4
+	echo '[ -c /dev/md$minor ] || mknod /dev/md$minor b 9 $minor' >&5
+	echo mdadm -A /dev/md$minor -R -u $uuid $devices \
 		> md$minor-script
 	echo /sbin/mdadm >&6
 }

Reply to: