summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarchauto.sh1
-rwxr-xr-xcreatevm.sh11
2 files changed, 7 insertions, 5 deletions
diff --git a/archauto.sh b/archauto.sh
index e985afa..4f8ce69 100755
--- a/archauto.sh
+++ b/archauto.sh
@@ -50,6 +50,7 @@ EOF
echo "Installing keyring for ArchLinux32."
sed -i 's/^SigLevel.*/SigLevel = Never/g' /etc/pacman.conf
+sed -i '/CheckSpace/ a DisableDownloadTimeout' /etc/pacman.conf
pacman --noconfirm -Syyw archlinux32-keyring
pacman --noconfirm -U /var/cache/pacman/pkg/archlinux32-keyring-*.pkg.tar.xz
diff --git a/createvm.sh b/createvm.sh
index 7cd84ab..cf84f67 100755
--- a/createvm.sh
+++ b/createvm.sh
@@ -22,20 +22,21 @@ wait_for_vm_to_stop() {
done
}
-mount -o loop,ro mirror/archisos/archlinux-2018.07.01-i686.iso archiso
+mount -o loop,ro mirror/archisos/archlinux-2018.08.01-i686.iso archiso
-#cp archiso/arch/boot/i686/vmlinuz .
-#cp archiso/arch/boot/i686/archiso.img .
+cp archiso/arch/boot/i686/vmlinuz .
+cp archiso/arch/boot/i686/archiso.img .
#darkhttpd . --port 8088 &
virt-install --name ${NAME} -r 1536 --vcpus=1 --os-type=linux --os-variant=virtio26 \
--disk pool=default,size=4,format=qcow2 --network bridge=br0,model=virtio \
- --vnc --vncport=5901 --noreboot --arch i686 --cpu coreduo \
+ --arch i686 --cpu coreduo \
--boot kernel=archiso/arch/boot/i686/vmlinuz,initrd=archiso/arch/boot/i686/archiso.img,kernel_args="archisobasedir=archiso/arch archiso_http_srv=http://${HOST}:8088/ script=http://${HOST}:8088/archauto.sh ip=${CLIENT}:::${NETMASK}:${NAME}::off nomodeset i915.modeset=0" &
-# --noautoconsole
+
sleep 15
+exit 0
virsh start ${NAME}
sleep 15