From db890a38ca8d15032ac5f9dde2b44d847c6b2ec4 Mon Sep 17 00:00:00 2001 From: Jan Luebbe Date: Thu, 11 Jun 2015 18:23:26 +0200 Subject: [PATCH] sysmobts: check for an oftree in the rescue image Signed-off-by: Jan Luebbe --- arch/arm/boards/sysmobts/defaultenv-sysmobts/boot/rescue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/boards/sysmobts/defaultenv-sysmobts/boot/rescue b/arch/arm/boards/sysmobts/defaultenv-sysmobts/boot/rescue index 7b2c59a0d..d5f2a64fb 100644 --- a/arch/arm/boards/sysmobts/defaultenv-sysmobts/boot/rescue +++ b/arch/arm/boards/sysmobts/defaultenv-sysmobts/boot/rescue @@ -1,7 +1,9 @@ #!/bin/sh global bootm.image=/mnt/rescue/boot/zImage -#global bootm.oftree= +if [ -e /mnt/rescue/devicetree ]; then + global bootm.oftree=/mnt/rescue/devicetree +fi #global bootm.initrd= global linux.bootargs.dyn.root="root=ubi0:rescue ubi.mtd=root rootfstype=ubifs ro rauc.slot=rescue"