envfs: provide an intentional way to ignore an existing external environment

Sascha Hauer s.hauer at pengutronix.de
Wed Jul 30 14:09:17 PDT 2014


On Wed, Jul 30, 2014 at 05:28:13PM +0200, Jan Lübbe wrote:
> Hi Jürgen!
> 
> This looks good so far.
> 
> On Wed, 2014-07-30 at 12:20 +0200, Juergen Borleis wrote:
> > This change set adds a new option to the saveenv command which will
> > write an empty environment without content. But it will be marked as a
> > placeholder and thus should be "ignored" and barebox falls back to its
> > built-in default environment.
> 
> I haven't found where the environment loading is changed to implement
> this behavior. Is a patch missing?

It's in the first patch. envfs_check_super is changed to return an error
when the ENVFS_FLAGS_PLACEHOLDER flag is set. Then barebox will fall
back to the default environment.

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