summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2015-02-25 23:23:52 +0100
committerTom Rini <trini@konsulko.com>2015-03-25 12:15:18 -0400
commitf643d9294f45487f22e8f33d6572530f17eff4e9 (patch)
tree2002c4c8fddf04430119a2cff17c16b5572aa7e7 /include
parent293eac363d7866948d6a99b13d4c53c5ccc00132 (diff)
downloadtalos-obmc-uboot-f643d9294f45487f22e8f33d6572530f17eff4e9.tar.gz
talos-obmc-uboot-f643d9294f45487f22e8f33d6572530f17eff4e9.zip
config_distro_bootcmd.h: Prefer booting from bootable paritions
List bootable partitions and only scan those for bootable files, falling back to partition 1 if there are no bootable partitions Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/config_distro_bootcmd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
index 73f093f9ea..d71e58dae1 100644
--- a/include/config_distro_bootcmd.h
+++ b/include/config_distro_bootcmd.h
@@ -213,7 +213,8 @@
"done\0" \
\
"scan_dev_for_boot_part=" \
- "part list ${devtype} ${devnum} devplist; " \
+ "part list ${devtype} ${devnum} -bootable devplist; " \
+ "env exists devplist || setenv devplist 1; " \
"for bootpart in ${devplist}; do " \
"if fstype ${devtype} ${devnum}:${bootpart} " \
"bootfstype; then " \
OpenPOWER on IntegriCloud