> First of all there's no pivot_mount but there's only pivot_root (never
> mind, it is clear you meant pivot_root).
>
> Secondly pivot_root has nothing to do with handle_initrd.
>
> Go read init/do_mounts.c::handle_initrd. There are only two ways:
There's a third way, which is used on the initrd of most
distros:
--- snip from linuxrc ----
mount --ro -t $rootfs $rootdev /sysroot
pivot_root /sysroot /sysroot/initrd
------
This way you can specify both the root fs and - if wanted -
special mount options to the root fs. Then you pivot_root(2)
to move the root fs to / and the (old) initrd to /initrd.
The initscripts then umount /initrd, after which the initrd
data gets freed.
regards,
Rik
-- Bravely reimplemented by the knights who say "NIH".http://www.surriel.com/ http://distro.conectiva.com/
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/