mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
install grub before outputting config file
Otherwise `grub-mkconfig` will complain that `/boot/grub` does not exist.
This commit is contained in:
parent
eca8dac320
commit
1d28f1bd29
1 changed files with 1 additions and 1 deletions
|
|
@ -122,8 +122,8 @@ Configure GRUB.
|
|||
# BIOS mode - set the UUID of the encrypted root device
|
||||
$ ROOTUUID=$(blkid /dev/sda1 | awk '{print $2}' | cut -d '"' -f2)
|
||||
$ sed -i "s/^GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"cryptdevice=UUID="$ROOTUUID":lvm:allow-discards resume=\/dev\/mapper\/arch-swap\"/" /etc/default/grub
|
||||
$ grub-mkconfig -o /boot/grub/grub.cfg
|
||||
$ grub-install /dev/sda
|
||||
$ grub-mkconfig -o /boot/grub/grub.cfg
|
||||
$ chmod -R g-rwx,o-rwx /boot
|
||||
|
||||
# UEFI mode - set the UUID of the encrypted root device
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue