Skip to content

change format for grub.cfg #1

Merged
merged 1 commit into from Jun 24, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 10 additions & 4 deletions mxgrub/mxgrub
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