diff --git a/deploy-initial b/deploy-initial index 0ec5318..1d5e37b 100755 --- a/deploy-initial +++ b/deploy-initial @@ -25,6 +25,10 @@ rsync -cv pacman.d/mirrorlist $remote:/etc/pacman.d/mirrorlist ssh $remote "mount /dev/${drive}1 /mnt" ssh $remote "pacstrap -K /mnt $(tr '\n' ' ' < packages/$host)" +rsync -cv grub $remote:/mnt/etc/default/grub +ssh $remote "arch-chroot /mnt grub-install /dev/$drive" +ssh $remote "arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg" + ssh $remote "echo $hostname >/mnt/etc/hostname" rsync -cpv --chmod=644 systemd/network/$host.link $remote:/mnt/etc/systemd/network/10-public.link @@ -32,10 +36,6 @@ rsync -cpv --chmod=644 systemd/network/$host.network $remote:/mnt/etc/systemd/ne rsync -cpv --chmod=644 crypttab environment fstab locale.conf pacman.conf pacreport.conf resolv.conf $remote:/mnt/etc/ -rsync -cv grub $remote:/mnt/etc/default/grub -ssh $remote "arch-chroot /mnt grub-install /dev/$drive" -ssh $remote "arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg" - rsync -cv unbound.conf $remote:/mnt/etc/unbound/unbound.conf if [[ $host = @(0.grapheneos.network|1.grapheneos.network|2.grapheneos.network|3.grapheneos.network) ]]; then