diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2015-02-25 23:23:52 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-03-25 12:15:18 -0400 |
commit | f643d9294f45487f22e8f33d6572530f17eff4e9 (patch) | |
tree | 2002c4c8fddf04430119a2cff17c16b5572aa7e7 | |
parent | 293eac363d7866948d6a99b13d4c53c5ccc00132 (diff) | |
download | u-boot-imx-f643d9294f45487f22e8f33d6572530f17eff4e9.zip u-boot-imx-f643d9294f45487f22e8f33d6572530f17eff4e9.tar.gz u-boot-imx-f643d9294f45487f22e8f33d6572530f17eff4e9.tar.bz2 |
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>
-rw-r--r-- | include/config_distro_bootcmd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h index 73f093f..d71e58d 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 " \ |