bareboxenv-target not loading correctly

Sascha Hauer s.hauer at pengutronix.de
Thu Feb 19 13:20:04 PST 2015


On Thu, Feb 19, 2015 at 04:06:46PM +0000, Boulais, Marc-Andre wrote:
> Hi,
> I am trying to modify the Barebox (v2015.02.0) environment from the application. To do so, I execute the following commands from Linux:
> 
> root at SBC-172:/root mkdir -p env
> root at SBC-172:/root bareboxenv-target -v -l ./env /dev/mtdblock2
> loading env from file /dev/mtdblock2 to ./env
> root at SBC-172:/root ls -al
> drwx------    2 root     root          4096 Jan  1 03:29 .
> drwxr-xr-x   19 root     root          4096 Jan  2  2000 ..
> 
> bareboxenv-target seems to succeed in loading env but the "env" directory has disappeared...

The directory shouldn't be removed, that is a bug. I just sent
a patch.
Anyway, the directory will stay empty even after applying the patch.
That is a side effect of only storing the differences to the default
environment. Once you have made changes they will show up there.

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