Skip to content

Commit

Permalink
format change for grub.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Jun 24, 2016
1 parent 1bcce94 commit 50ef25b
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 50ef25b

Please sign in to comment.