summaryrefslogtreecommitdiff
path: root/archauto.sh
diff options
context:
space:
mode:
Diffstat (limited to 'archauto.sh')
-rwxr-xr-xarchauto.sh17
1 files changed, 13 insertions, 4 deletions
diff --git a/archauto.sh b/archauto.sh
index 1fd1aae..4bca008 100755
--- a/archauto.sh
+++ b/archauto.sh
@@ -37,7 +37,6 @@ mount ${INSTALL_DRIVE}${PARTITION_ROOT} ${MOUNT_PATH}
export http_proxy=http://192.168.1.12:3128
-#pacstrap ${MOUNT_PATH} base base-devel
pacstrap ${MOUNT_PATH} base
arch-chroot /mnt pacman --noconfirm -S grub-bios
@@ -60,15 +59,25 @@ arch-chroot /mnt hwclock --systohc --utc
echo "archiso" > /mnt/etc/hostname
-arch-chroot /mnt systemctl enable dhcpcd@enp0s3.service
+arch-chroot /mnt systemctl enable dhcpcd@ens3.service
arch-chroot /mnt sh -c "echo 'root:xx' | chpasswd"
+# switch off signature for now
+arch-chroot /mnt sed -i 's/^SigLevel.*/SigLevel = Never/g' /etc/pacman.conf
+
# monitord needs netstat
arch-chroot /mnt pacman --noconfirm -S net-tools
-arch-chroot /mnt pacman --noconfirm -Uf http://10.0.2.2:8080/qdbm-1.8.78-1-x86_64.pkg.tar.xz
-arch-chroot /mnt pacman --noconfirm -Uf http://10.0.2.2:8080/cfengine-3.4.2-3-x86_64.pkg.tar.xz
+# we use 'git' to manage our promises
+arch-chroot /mnt pacman --noconfirm -S git-core
+
+arch-chroot /mnt pacman --noconfirm -U http://10.0.2.2:8080/qdbm-1.8.78-1-x86_64.pkg.tar.xz
+arch-chroot /mnt pacman --noconfirm -U http://10.0.2.2:8080/cfengine-3.4.2-3-x86_64.pkg.tar.xz
+
+# install rules for the machine from git
+
+# enable cfengine
arch-chroot /mnt systemctl enable cf-execd
arch-chroot /mnt systemctl enable cf-monitord
arch-chroot /mnt systemctl enable cf-serverd