summaryrefslogtreecommitdiffstats
path: root/setup-arch-vm
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-09-13 11:40:16 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-09-13 11:40:16 +0200
commitba38291a468363fe3267313b760ae0522616254b (patch)
tree84fdf4f3a3d084118f29214547a781678b54d26b /setup-arch-vm
parent3e7f8d425d593b426c46b472012c271c6497a855 (diff)
downloadbin-ba38291a468363fe3267313b760ae0522616254b.tar.gz
bin-ba38291a468363fe3267313b760ae0522616254b.tar.xz
misc
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'setup-arch-vm')
-rw-r--r--setup-arch-vm6
1 files changed, 3 insertions, 3 deletions
diff --git a/setup-arch-vm b/setup-arch-vm
index 2dac5b1..226956e 100644
--- a/setup-arch-vm
+++ b/setup-arch-vm
@@ -40,7 +40,7 @@ done
parted -s -- $disk mklabel msdos mkpart primary 1 -0
-mkfs.ext4 ${disk}1
+mkfs.btrfs ${disk}1
mount ${disk}1 /mnt
cat <<EOF >/etc/pacman.d/mirrorlist
Server = http://mirror.server-speed.net/\$repo/os/\$arch
@@ -49,7 +49,7 @@ EOF
pacstrap /mnt base syslinux sudo openssh haveged htop git zsh screen dnsutils vim net-tools
genfstab -p /mnt >> /mnt/etc/fstab
-mymac=$(ip addr show dev eth0 | sed -rn 's#^\s+link/ether ([0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}).*$#\1#p')
+mymac=$(ip addr show dev ens3 | sed -rn 's#^\s+link/ether ([0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}).*$#\1#p')
get_url "http://$server/hostnames/$mymac" "archvm" > /mnt/etc/hostname
hostname=$(cat /mnt/etc/hostname)
@@ -62,7 +62,7 @@ Name=e*
$(get_url "http://$server/network/$hostname")
EOF
-ln -s /usr/share/zoneinfo/Europe/Vienna /mnt/etc/localtime
+ln -sf /usr/share/zoneinfo/Europe/Vienna /mnt/etc/localtime
echo "en_US.UTF-8 UTF-8" > /mnt/etc/locale.gen
arch-chroot /mnt locale-gen