[PATCH 3/7] defaultenv: switch hostname to global.hostname

Sascha Hauer s.hauer at pengutronix.de
Wed Sep 12 11:31:34 EDT 2012


On Wed, Sep 12, 2012 at 04:48:24PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> 
> diff --git a/arch/arm/boards/eukrea_cpuimx25/env/config b/arch/arm/boards/eukrea_cpuimx25/env/config
> index b6bf93f..9c70988 100644
> --- a/arch/arm/boards/eukrea_cpuimx25/env/config
> +++ b/arch/arm/boards/eukrea_cpuimx25/env/config
> @@ -24,16 +24,16 @@ rootfs_loc=nand
>  
>  # rootfs
>  rootfs_type=ubifs
> -rootfsimage=$hostname/rootfs.$rootfs_type
> +rootfsimage=${global.hostname}/rootfs.$rootfs_type

This fixes all cases where global.hostname is read, but not where it's
set, i.e.

hostname=eukrea-cpuimx25

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