From f7643fa8b78c641da3b741c28c5cddbd9cc89b02 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 19 Jun 2024 11:54:08 -0400 Subject: [PATCH] reorder initial deployment --- deploy-initial | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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