OWHW: only set global.initrd if the system0/1 partition contains one
This commit is contained in:
parent
53a92664d2
commit
cf239b47f8
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue