diff options
-rw-r--r-- | resources/grub/config/menuentries/common.cfg | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/resources/grub/config/menuentries/common.cfg b/resources/grub/config/menuentries/common.cfg index 7dacc698..c6b51097 100644 --- a/resources/grub/config/menuentries/common.cfg +++ b/resources/grub/config/menuentries/common.cfg @@ -94,6 +94,20 @@ menuentry 'Search for GRUB configuration (grub.cfg) outside of CBFS' { unset superusers } fi + if [ -f "$x/grub2/grub.cfg" ] ; then + submenu "Load Config from $x" $x { + root=$2 + source /grub2/grub.cfg + unset superusers + } + fi + if [ -f "$x/boot/grub2/grub.cfg" ] ; then + submenu "Load Config from $x" $x { + root=$2 + source /boot/grub2/grub.cfg + unset superusers + } + fi done } |