config_distro_bootcmd: do not scan boot partitions if distro_bootpart is defined
For some projects, designing the active bootable partition is done by setting distro_bootpart in the environment instead of changing the bootable flag on the active partition. This patch makes it possible to support both models by scanning boot partitions only if distro_bootpart is not defined in the environment. Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
This commit is contained in:
committed by
Tom Rini
parent
163d939b28
commit
f7bef8f81f
@@ -543,8 +543,12 @@
|
||||
"\0" \
|
||||
\
|
||||
"scan_dev_for_boot_part=" \
|
||||
SCAN_DEV_FOR_BOOT_PARTS \
|
||||
"env exists devplist || setenv devplist 1; " \
|
||||
"if env exists distro_bootpart; then " \
|
||||
"setenv devplist ${distro_bootpart}; " \
|
||||
"else " \
|
||||
SCAN_DEV_FOR_BOOT_PARTS \
|
||||
"env exists devplist || setenv devplist 1; " \
|
||||
"fi; " \
|
||||
"for distro_bootpart in ${devplist}; do " \
|
||||
"if fstype ${devtype} " \
|
||||
"${devnum}:${distro_bootpart} " \
|
||||
|
||||
Reference in New Issue
Block a user