defaultenv-2: net: use oftree when existing
For booting with devicetree we had to adjust /env/boot/net manually. Instead, test if a devicetree exists and if yes, use it. This makes for a better default. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
7691202bdd
commit
4d43f79dd5
|
@ -8,7 +8,12 @@ fi
|
|||
path="/mnt/tftp"
|
||||
|
||||
global.bootm.image="${path}/${global.user}-linux-${global.hostname}"
|
||||
#global.bootm.oftree="${path}/${global.user}-oftree-${global.hostname}"
|
||||
|
||||
oftree="${path}/${global.user}-oftree-${global.hostname}"
|
||||
if [ -f "${oftree}" ]; then
|
||||
global.bootm.oftree="$oftree"
|
||||
fi
|
||||
|
||||
nfsroot="/home/${global.user}/nfsroot/${global.hostname}"
|
||||
bootargs-ip
|
||||
global.linux.bootargs.dyn.root="root=/dev/nfs nfsroot=$nfsroot,v3,tcp"
|
||||
|
|
Loading…
Reference in New Issue