mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-31 00:24:17 +00:00
kexec-select-boot: correct order of USB boot options
Using sort on USB boot options produces a reverse-ordered list, leading users to often select the wrong option. Add the -r parameter to sort to correct the list order and make the default option the first in the list. Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
This commit is contained in:
parent
5eb758711d
commit
e0e0019250
@ -175,7 +175,7 @@ scan_options() {
|
|||||||
die "Failed to parse any boot options"
|
die "Failed to parse any boot options"
|
||||||
fi
|
fi
|
||||||
if [ "$unique" = 'y' ]; then
|
if [ "$unique" = 'y' ]; then
|
||||||
sort $option_file | uniq > $TMP_MENU_FILE
|
sort -r $option_file | uniq > $TMP_MENU_FILE
|
||||||
else
|
else
|
||||||
cp $option_file $TMP_MENU_FILE
|
cp $option_file $TMP_MENU_FILE
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user