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

Bug#440694: initramfs-tools: hook-functions:dep_add_modules() breaks with /dev/md/x device names



tags 440694 moreinfo
stop

[ please use reportbug in furture it adds important info ]

On Mon, 03 Sep 2007, Mario 'BitKoenig' Holbe wrote:

> using a device name like /dev/md/0 or /dev/md/root as root device breaks
> the creation of the intramfs-image because of an syntax error in the awk
> script in dep_add_modules():
> 		block=$(awk "/^${root}/{print substr(\$5, 1, 3); exit}" \
> 			/proc/mdstat)
> which then gets expanded to something like awk /^md/x/, which is, of
> course, syntactically incorrect. A possible solution would be to escape
> /-es in $root before... `root=${root//\//\\/}' should do the trick.

hmm that's partitioned md, or is this still the old devfs naming scheme?



please post output of
cat /proc/cmdline
sed 's/#.*$//;/^[[:space:]]*$/d' /etc/initramfs-tools/initramfs.conf
find /sys/block

-- 
maks



Reply to: