diff options
author | Francis Rowe <info@gluglug.org.uk> | 2016-03-03 21:15:39 +0100 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2016-03-03 21:15:39 +0100 |
commit | b65623ca6fb6a9f440cb59946163dcab0f514753 (patch) | |
tree | d981f9d882aea99a5d4c75e51488059b1781e8fd /resources | |
parent | 79d015913feef9257bfd19f70d3733cefb0bb0cd (diff) | |
download | librebootfr-b65623ca6fb6a9f440cb59946163dcab0f514753.tar.gz librebootfr-b65623ca6fb6a9f440cb59946163dcab0f514753.zip |
grub.cfg: fix broken for loop
Diffstat (limited to 'resources')
-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 80a95cbc..d7e8a14f 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 |