diff --git a/resources/grub/config/grub.cfg b/resources/grub/config/grub.cfg index 24516b9..69ac35f 100644 --- a/resources/grub/config/grub.cfg +++ b/resources/grub/config/grub.cfg @@ -107,7 +107,7 @@ menuentry 'Load Operating System (incl. fully encrypted disks) [o]' --hotkey='o fi for device in (*) ; do - if regexp ^lvm/ $device ; then + if regexp "^\(lvm/" "${device}" ; then try_user_config "${device}" fi done @@ -141,7 +141,7 @@ menuentry 'Load Operating System (incl. fully encrypted disks) [o]' --hotkey='o done for device in (*) ; do - if regexp ^lvm/ "${device}" ; then + if regexp "^\(lvm/" "${device}" ; then if cryptomount "${device}" ; then break ; fi fi done @@ -152,7 +152,7 @@ menuentry 'Load Operating System (incl. fully encrypted disks) [o]' --hotkey='o # after cryptomount, lvm volumes might be available for device in (*) ; do - if regexp ^lvm/ $device ; then + if regexp "^\(lvm/" "${device}" ; then try_user_config "${device}" fi done