Seems some more have problems, too. It is possibly related.
OK, I am pretty aware of the fact that it is the DOCUMENTED way to go. ButQuote:> pivot_root() is the currently preferred method. Depending on where
> the initramfs is by the time Linux 2.6 comes out it may be replaced by
> then, but for 2.4, pivot_root() is the way to go.
can you tell me ONE SINGLE current distribution using the pivot_root()
call in their initrd to mount the realrootdev?
Have a look at the following linuxrc script:
echo "Loading module sym53c8xx ..."
echo "Loading module jbd ..."
echo "Loading module ext3 ..."
mount -n -t proc proc /proc
echo 0x0100 > /proc/sys/kernel/real-root-dev ## <<<---- THIS LINE IS IMPORTANT!!
mount -n -t ext3 /dev/sda4 /mnt
rm -f /mnt/.initrd 2>/dev/null
mkdir -p /mnt/.initrd
pivot_root . .initrd
umount -n /.initrd/proc
exec sh -c 'umount -n /.initrd ; rmdir /.initrd ; mount -n -oremount,ro /' </dev/console >/dev/console 2>&1
The fact is, without the "echo 0x0100 ..." line this linuxrc script WILL
NOT be able to mount your root device for kernel >=2.4.19. This is
independent of the distribution used.
So why is that?
I always thought the pivot_root() would make this echo-stuff unnecessary.
The way used by virtually all latest distributions is getting rid of the
pivot stuff altogether, leaving the loading of the modules, and that's it.
Seems totally unclear (and unclean) to me.
Dr. Oliver Tennert
+49 -7071 -9457-598
science + computing AG
Hagellocher Weg 71
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/