tags 358354 pending
retitle 358354 0.56 wrong minor parsing
thanks

On Fri, 24 Mar 2006, Martijn Pieters wrote:
<snipp>
> FWIW: the same problem was observed with 2.6.16-1-686-smp.

yes it's an initramfs-tools bug.

> > cat /proc/cmdline
> auto BOOT_IMAGE=Linux ro root=1606
> 
> (both on 2.6.16 booted with lilo and initramfs-utils 0.55b)

aha, yes lilo we parse wrongly the minor,
that's why mknod returns the usage arguments.
 
> Just in case this is helpful, after booting with 0.55b, /dev/root is:
> 
>   $ ls -la /dev/root
>   brw-r--r-- 1 root root 22, 6 2006-03-24 16:25 /dev/root

yes,
will fix with an upload today or tommorrow.

regards

-- 
maks


=== modified file 'a/scripts/functions'
--- a/scripts/functions 
+++ b/scripts/functions 
@@ -201,10 +201,14 @@
                minor=${1#*:}
                major=${1%:*}
                ;;
-       *)
+       [0-9][0-9][0-9])
                minor=$((0x${1#?}))
                major=$((0x${1%??}))
                ;;
+       *)
+               minor=$((0x${1#??}))
+               major=$((0x${1%??}))
+               ;;
        esac
 
        mknod /dev/root b ${major} ${minor}



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to