From b65623ca6fb6a9f440cb59946163dcab0f514753 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Thu, 3 Mar 2016 21:15:39 +0100 Subject: grub.cfg: fix broken for loop --- 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 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 -- cgit v1.2.3-70-g09d2