base-image/scripts/install_bootloader.sh

11 lines
316 B
Bash
Raw Normal View History

2022-12-16 02:45:20 +00:00
#!/usr/bin/env bash
set -eux
genfstab -t PARTUUID -p /mnt > "/mnt/etc/fstab"
# Remove quiet boot
arch-chroot /mnt sed -i 's,GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet",GRUB_CMDLINE_LINUX_DEFAULT="",' /etc/default/grub
arch-chroot /mnt grub-install /dev/vda
arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg