aboutsummaryrefslogtreecommitdiff
path: root/scripts/hetzner_server/arch_chroot_script.sh
blob: afc78e2430f55815378b1af12f7c3e376c0df218 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

pacman-key --init
pacman-key --populate archlinux

UUID=$(cat /device_uuid)
PART="/dev/disk/by-uuid/$UUID"
DEVICE=$(realpath "$PART")

mkfs.ext4 -F -U "$UUID" "$DEVICE"
mount "$DEVICE" /mnt

pacstrap -G /mnt base git puppet

echo "$PART / auto defaults 0 1" > /mnt/etc/fstab

umount /mnt