summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-01-23 18:26:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-01-23 18:26:06 +0000
commit13c1ebccd0b53fe82a1c8454d9dbbea9bea26699 (patch)
tree0b87d93f25694b4ef69253166ac6f046ce8ae25c
parent8429a0f894b32291984777069c571312a2fa83c0 (diff)
downloadalpine-conf-13c1ebccd0b53fe82a1c8454d9dbbea9bea26699.zip
setup-disk: let grub-mkconfig create grub.conf
-rw-r--r--setup-disk.in18
1 files changed, 8 insertions, 10 deletions
diff --git a/setup-disk.in b/setup-disk.in
index 4ed0cbd..5eb8638 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -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
}