16 lines
370 B
Bash
16 lines
370 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
DRIVE=/dev/sda
|
|
MOUNTPOINT=/mnt/gentoo
|
|
|
|
blkid --output export ${DRIVE}2 | grep ^UUID= | xargs -I '{}' echo {} / xfs defaults 0 1 >> /etc/fstab
|
|
blkid --output export ${DRIVE}1 | grep ^UUID= | xargs -I '{}' echo {} /boot/efi vfat defaults 0 2 >> /etc/fstab
|
|
|
|
chroot ${MOUNTPOINT} grub-mkconfig -o /boot/grub/grub.cfg
|
|
|
|
#
|
|
|
|
systemctl enable chronyd.service
|