Re: Rootfs mounted from user space - problem with umount

From: John Zielinski
Date: Sat Nov 29 2003 - 01:26:36 EST


Valdis.Kletnieks@xxxxxx wrote:

I'm missing something - why not use an initrd and pivot_root and then
unmount the old root? Seems to work here.



I'm using the 2.6.0-test9 kernel and initramfs to store video mode data that my kernel mods will read during boot. Using cpio is a lot easier than making a file system using the loopback device. I want to keep the rootfs around since I can modify it and then cpio it back up in a shutdown script for next boot.

If I used initrd I'd also have to set up a usable filesystem. This way I can just have data in there.

John




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/