* Multiple root file systems
@ 2017-02-03 13:44 Haris Papadopoulos
2017-02-10 8:12 ` Uwe Kleine-König
0 siblings, 1 reply; 2+ messages in thread
From: Haris Papadopoulos @ 2017-02-03 13:44 UTC (permalink / raw)
To: barebox
Hi,
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?
Thanks
Haris
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Multiple root file systems
2017-02-03 13:44 Multiple root file systems Haris Papadopoulos
@ 2017-02-10 8:12 ` Uwe Kleine-König
0 siblings, 0 replies; 2+ messages in thread
From: Uwe Kleine-König @ 2017-02-10 8:12 UTC (permalink / raw)
To: Haris Papadopoulos; +Cc: barebox
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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-10 8:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-03 13:44 Multiple root file systems Haris Papadopoulos
2017-02-10 8:12 ` Uwe Kleine-König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox