From: Sjoerd Simons Date: Wed, 25 Feb 2015 22:23:52 +0000 (+0100) Subject: config_distro_bootcmd.h: Prefer booting from bootable paritions X-Git-Tag: v2015.04-rc5~54 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f643d9294f45487f22e8f33d6572530f17eff4e9;p=u-boot 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 Reviewed-by: Hans de Goede Reviewed-by: Stephen Warren --- 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 " \