Skip to content

Commit

Permalink
Merge pull request #1 from mariux64/usbGrubCfg
Browse files Browse the repository at this point in the history
change format for grub.cfg
  • Loading branch information
donald committed Jun 24, 2016
2 parents 1bcce94 + 50ef25b commit 4530018
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions mxgrub/mxgrub
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ sub update_grub_cfg {
}

my $GRUB_CFG_NEW=<<"EOF";
$kernellist
set timeout=5
Expand All @@ -173,10 +172,17 @@ password_pbkdf2 root grub.pbkdf2.sha512.10000.A1168F03CC3CD47F79848E949584EA624F
set default="$MARIUX_DEFAULT"
load_env
if [ -e /etc/local/USB.usb ]; then
set default="mariuxUSB"
menuentry "mariuxUSB" --unrestricted { save_env chosen ; linux /boot/bzImage.x86_64 crashkernel=256M root=LABEL=rootusb ro ; initrd /boot/grub/initramfs.igz }
else
if [ \$chosen ]; then
set default=\$chosen
unset chosen # must be clear to get a clean value from menuentry
$kernellist
if [ \$chosen ]; then
set default=\$chosen
unset chosen # must be clear to get a clean value from menuentry
fi
fi
EOF

Expand Down

0 comments on commit 4530018

Please sign in to comment.