Reinhard Katzmann <[EMAIL PROTECTED]> writes:
[...]
> Hmm, there is a case in mkinitrd, where initrd is not built:
>
> if [ "$rootfs" != "ext3" -a -z "$rootfsopts" -a -n "$ifneeded" -a -z "$MODULES"
> ]; then
> if [ -n "$verbose" ]; then
> echo "Rootfs is not ext3, there is no rootfs special options, and"
> echo "no modules are needed -- not building initrd image."
> fi
> exit 0
> fi
>
> If I did not use ext3 but ext2 for me this script would not build any
> initrd image.
Yes.
> One more thing about mkinitrd:
> I found that rootdev variable is defined twice:
>
> 1) rootdev=$(awk '{ if ($2 == "/") { print $1; }}' $fstab)
>
> 2) (more below)
>
> if [ -n "$loopDev" ]; then
>
> ...
>
> rootdev=/safedev/loop7
> else
> echo "echo Creating root device" >> $RCFILE
> echo "mkrootdev /dev/root" >> $RCFILE
> rootdev=/dev/root
> fi
>
> The first rootdev definition is nowhere used, and if I use it,
> booting will fail (because mkrootdev either is missing or
> creates the wrong device). No problem here, but I think the
> 1) line could be removed from the script, couldn't it ?
Seems right (but not thrilling ;p).
--
Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/