aboutsummaryrefslogtreecommitdiff
path: root/scripts/hetzner_server/arch_chroot_script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/hetzner_server/arch_chroot_script.sh')
-rwxr-xr-xscripts/hetzner_server/arch_chroot_script.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/hetzner_server/arch_chroot_script.sh b/scripts/hetzner_server/arch_chroot_script.sh
new file mode 100755
index 0000000..afc78e2
--- /dev/null
+++ b/scripts/hetzner_server/arch_chroot_script.sh
@@ -0,0 +1,18 @@
1#!/bin/bash
2
3pacman-key --init
4pacman-key --populate archlinux
5
6UUID=$(cat /device_uuid)
7PART="/dev/disk/by-uuid/$UUID"
8DEVICE=$(realpath "$PART")
9
10mkfs.ext4 -F -U "$UUID" "$DEVICE"
11mount "$DEVICE" /mnt
12
13pacstrap -G /mnt base git puppet
14
15echo "$PART / auto defaults 0 1" > /mnt/etc/fstab
16
17umount /mnt
18