Hi!

On Mon, Jan 07, 2002 at 12:18:54PM +0100, Juan Quintela wrote:
> >>>>> "guillaume" == Guillaume Cottenceau <[EMAIL PROTECTED]> writes:
> 
> >> VFS: Mounted root (ext2 filesystem).
> >> Mounted devfs on /dev.
> >> Freeing unused kernel memory:708k freed.
> >> Kernel panic: Attempted to kill init!
> 
> guillaume> Ooh this is also strange but looks like a kernel problem? Or does
> guillaume> boot without pivot_rooting no more supported, dear kernel team?
> 
> I think it is not supported anymore, but for the mkinitrd :(

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.

> 
> having to take a look at that later.

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 ?

If I use the normal way with /dev/root as root device mounting
seems to work fine (according to the output). I did not find a
way how to test if the mounting really worked, any idea how I
could do that ? nash has no ls or something similar and external
ls ("/sysroot/bin/ls" or "exec /sysroot/bin/ls") always fails.

With best regards,

Reinhard Katzmann 
-- 
Software-Engineer, Developer for Embedded Devices
Project: HyperPen Tablet USB Driver for Linux 
GnuPG Public Key available on request

Attachment: msg50407/pgp00000.pgp
Description: PGP signature

Reply via email to