1
0
forked from extern/nix-config
donovanglover-nix-config/sh/install/022-grub
Donovan Glover 4e81aab657
Move installation steps to install directory
This helps separate the installation process from the other scripts that
are usually ran after a reboot, although this may change in the future
if chroot is preferred over executing the commands later.
2018-09-06 15:18:39 -04:00

13 lines
249 B
Bash

#!/bin/sh
#
# Install grub to the primary partition. Then, make the
# configuration file for grub.
#
# https://wiki.archlinux.org/index.php/Grub
set -xe
arch-chroot /mnt grub-install /dev/sda
arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg