libreboot

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit b65623ca6fb6a9f440cb59946163dcab0f514753
parent 79d015913feef9257bfd19f70d3733cefb0bb0cd
Author: Francis Rowe <info@gluglug.org.uk>
Date:   Thu,  3 Mar 2016 21:15:39 +0100

grub.cfg: fix broken for loop

Diffstat:
resources/grub/config/menuentries/common.cfg | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git 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