[PATCH] defaultenv-2: add boot sequence
Sascha Hauer
s.hauer at pengutronix.de
Tue Mar 5 05:52:19 EST 2013
On Mon, Mar 04, 2013 at 09:56:32PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 09:20 Fri 22 Feb , Sascha Hauer wrote:
> > From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> >
> > This allows to boot a sequence of boot entries until one succeeds.
> >
> > boot sources can be passed in $global.boot.default, which is now treated
> > as a list. Also a list of boot entries can be specified as arguments
> > to the boot script. The entries can be:
> >
> > - a plain filename from /env/boot/
> > - a full path to an arbitrary file
> > - a directory containing boot entries
> >
> > With this this command:
> >
> > boot net nand-ubi /env/boot.d
> >
> > would first use the /env/boot/net entry, if this fails the /env/boot/nand-ubi
> > entry and if this also fails the files from /env/boot.d/ (which could also
> > be links to boot scripts)
> >
> > To make the above the default, global.boot.default would be specified as:
> >
> > global.boot.default="net nand-ubi /env/boot.d"
> >
> > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> > Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
>
> ok can we have this on master?
Ok.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list