]>
Commit | Line | Data |
---|---|---|
c15f2234 IB |
1 | #!/bin/bash |
2 | ||
3 | pacman-key --init | |
4 | pacman-key --populate archlinux | |
5 | ||
6 | UUID=$(cat /device_uuid) | |
7 | PART="/dev/disk/by-uuid/$UUID" | |
8 | DEVICE=$(realpath "$PART") | |
9 | ||
10 | # mkfs.ext4 -F -U "$UUID" "$DEVICE" | |
11 | mount "$DEVICE" /mnt | |
12 | ||
2742958f | 13 | ##### mkfs.ext4 would be better #### |
c15f2234 IB |
14 | for i in /mnt/*; do |
15 | if [ "$i" = "/mnt/boot" ]; then | |
16 | # keep /boot/grub | |
17 | rm -f $i/* | |
18 | else | |
19 | rm -rf $i | |
20 | fi | |
21 | done | |
2742958f | 22 | ##### / #### |
c15f2234 | 23 | |
4772e48c | 24 | pacstrap -G /mnt base git puppet |
c15f2234 IB |
25 | |
26 | echo "$PART / auto defaults 0 1" > /mnt/etc/fstab | |
27 | ||
28 | umount /mnt | |
29 |