diff options
author | Francis Rowe <info@gluglug.org.uk> | 2016-03-03 15:15:39 (EST) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2016-03-03 15:15:39 (EST) |
commit | b65623ca6fb6a9f440cb59946163dcab0f514753 (patch) | |
tree | d981f9d882aea99a5d4c75e51488059b1781e8fd | |
parent | 79d015913feef9257bfd19f70d3733cefb0bb0cd (diff) | |
download | libreboot-b65623ca6fb6a9f440cb59946163dcab0f514753.zip libreboot-b65623ca6fb6a9f440cb59946163dcab0f514753.tar.gz libreboot-b65623ca6fb6a9f440cb59946163dcab0f514753.tar.bz2 |
grub.cfg: fix broken for loop
-rw-r--r-- | resources/grub/config/menuentries/common.cfg | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/resources/grub/config/menuentries/common.cfg b/resources/grub/config/menuentries/common.cfg index 80a95cb..d7e8a14 100644 --- a/resources/grub/config/menuentries/common.cfg +++ b/resources/grub/config/menuentries/common.cfg @@ -82,12 +82,13 @@ menuentry 'Load Operating System (incl. fully encrypted disks) [o]' --hotkey='o # Last resort, if all else fails set root=ahci0,1 for p in / /boot/; do - if [ -f "${p}vmlinuz" ]; then - linux ${p}vmlinuz root=/dev/sda1 rw - if [ -f "${p}initrd.img" ]; then - initrd ${p}initrd.img + if [ -f "${p}vmlinuz" ]; then + linux ${p}vmlinuz root=/dev/sda1 rw + if [ -f "${p}initrd.img" ]; then + initrd ${p}initrd.img + fi fi - fi + done } menuentry 'Search ISOLINUX menu (AHCI) [a]' --hotkey='a' { search_isolinux ahci |