Skip to content
Snippets Groups Projects
Commit f643d929 authored by Sjoerd Simons's avatar Sjoerd Simons Committed by Tom Rini
Browse files

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: default avatarSjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Reviewed-by: default avatarStephen Warren <swarren@nvidia.com>
parent 293eac36
No related branches found
No related tags found
No related merge requests found
......@@ -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 " \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment