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

Bug#281172: mkinitrd: fails with ROOT=probe



> Package: initrd-tools
> Version: 0.1.74
> Severity: important
>
> I tried to install a kernel-image which failed with:
> Setting up kernel-image-2.6.8-1-686 (2.6.8-5) ...
> /usr/sbin/mkinitrd: /dev/loop1: Unknown root device
>                     Please refer to the manual page.
> Failed to create initrd image.
>
>
> So I began searching for the possible reason. It seems that
> getroot() in mkinitrd does not work correctly, in part this part of
> it:
>
>                 script='
>                         BEGIN { printf "set -- " }
>                         /^#/ { next }
>                         $2 == "/" { root = $1; type = $3; next }
>                         $3 == "swap" { printf "'\''%s'\''", $1 }
>                         END {
>                                 print ""
>                                 print "root=" root
>                                 print "fstabtype=" type
>                         }
>                 '
>                 root=
>                 eval "$(awk "$script" /etc/fstab)"
>
> ###########gives:
> #   set -- '''/dev/loop1'''
> #   root=/dev/hda1
> #   fstabtype=ext3

After setting ROOT=/dev/hda1 in /etc/mkinitrd/mkinitrd.conf it works ok. 


Don't know why the autodetection of ROOT fails...

[...]


Jens

Attachment: pgpWWMiBT0gqm.pgp
Description: PGP signature


Reply to: