Commit 13c1ebcc authored by Natanael Copa's avatar Natanael Copa

setup-disk: let grub-mkconfig create grub.conf

parent 8429a0f8
......@@ -306,16 +306,14 @@ setup_grub() {
esac
fi
# setup GRUB config
# all_video is needed to remove the video error on boot
cat > "$mnt"/boot/grub/grub.cfg <<- EOF
set timeout=2
insmod all_video
menuentry "Alpine Linux" {
linux /boot/vmlinuz-$KERNEL_FLAVOR modules=$modules root=$root $kernel_opts
initrd /boot/initramfs-$KERNEL_FLAVOR
}
# setup GRUB config. trigger will generate final grub.cfg
install -d "$mnt"/etc/default/
cat > "$mnt"/etc/default/grub <<- EOF
GRUB_DISTRIBUTOR="Alpine"
GRUB_TIMEOUT=2
GRUB_DISABLE_SUBMENU=y
GRUB_DISABLE_RECOVERY=true
GRUB_CMDLINE_LINUX_DEFAULT="modules=$modules $kernel_opts"
EOF
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment