Re: Multiple root file systems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/  |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux