Multiple root file systems
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Fri Feb 10 00:12:10 PST 2017
Hello,
On Fri, Feb 03, 2017 at 01:44:43PM +0000, Haris Papadopoulos wrote:
> I am trying to create a system with one bootloader, one kernel and
> multiple filesystems. I am going to use barebox bootchooser
> (http://www.barebox.org/doc/latest/user/bootchooser.html)
>
> My current /boot/nand file is as follows:
>
>
> #!/bin/sh
>
> [ -e /env/config-expansions ] && /env/config-expansions
>
> [ ! -e /dev/nand0.root.ubi ] && ubiattach /dev/nand0.root
>
> global.bootm.image="/dev/nand0.root.ubi.kernel"
> global.bootm.oftree="/dev/nand0.root.ubi.oftree"
>
> global.linux.bootargs.dyn.root="root=ubi0:root ubi.mtd=root
> rootfstype=ubifs rw"
>
> I would like to use two filesysyems with names root1 and root2. How
> should I modify the above?
What is the reason to stick to one kernel for both root filesystems?
If you drop that, you can put the kernel into the rootfses and use
blspec for booting. This way you get rid of the bootscript and just
mount the rootfs and then call
boot /mnt/rootfs1
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
More information about the barebox
mailing list