blob: 57e793bfe9bd51a12059463d4ce9896743525b5a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/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
##### mkfs.ext4 would be better ####
for i in /mnt/*; do
if [ "$i" = "/mnt/boot" ]; then
# keep /boot/grub
rm -f $i/*
else
rm -rf $i
fi
done
##### / ####
pacstrap -G /mnt base git puppet
echo "$PART / auto defaults 0 1" > /mnt/etc/fstab
umount /mnt
|