9
0
Fork 0

OWHW: only set global.initrd if the system0/1 partition contains one

This commit is contained in:
Harald Welte 2015-11-07 17:22:01 +01:00 committed by Holger Hans Peter Freyther
parent 53a92664d2
commit cf239b47f8
2 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,9 @@ global bootm.image.loadaddr=0x81000000
if [ -e /mnt/system0/devicetree ]; then
global bootm.oftree=/mnt/system0/devicetree
fi
global bootm.initrd=/mnt/system0/initramfs
if [ -e /mnt/system0/initramfs ]; then
global bootm.initrd=/mnt/system0/initramfs
fi
global linux.bootargs.dyn.root="root=ubi0:system0 rootfstype=ubifs ro rauc.slot=system0"
global linux.bootargs.dyn.mtd="mtdparts=omap2-nand.0:${nand0.partitions} ubi.mtd=root,2048"

View File

@ -5,7 +5,9 @@ global bootm.image.loadaddr=0x81000000
if [ -e /mnt/system1/devicetree ]; then
global bootm.oftree=/mnt/system1/devicetree
fi
global bootm.initrd=/mnt/system1/initramfs
if [ -e /mnt/system1/initramfs ]; then
global bootm.initrd=/mnt/system1/initramfs
fi
global linux.bootargs.dyn.root="root=ubi0:system1 rootfstype=ubifs ro rauc.slot=system1"
global linux.bootargs.dyn.mtd="mtdparts=omap2-nand.0:${nand0.partitions} ubi.mtd=root,2048"