From 7672b221bf54afa6debacc64d66f546bf117832c Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Wed, 15 May 2013 20:30:29 +0200 Subject: fixed qemu installation (proxy, small details --- BUGS | 6 ++++++ README | 1 + archauto.sh | 18 ++++++++++++------ 3 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 BUGS diff --git a/BUGS b/BUGS new file mode 100644 index 0000000..f86fc15 --- /dev/null +++ b/BUGS @@ -0,0 +1,6 @@ +- pacman -U http:/xxx fails after 10 seconds, with too low download rate? + works if called manyally, even in chroot? + error: failed retrieving file 'cfengine-3.4.4-2-x86_64.pkg.tar.xz' from 10.0.2.2:8080 : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds warning: failed to download + http://10.0.2.2:8080/cfengine-3.4.4-2-x86_64.pkg.tar.xz error: 'http://10.0.2.2:8080/cfengine-3.4.4-2-x86_64.pkg.tar.xz': download library error + => changed to lighthttpd, from darkhttp, no difference + => supposing it's a pacman bug diff --git a/README b/README index d2d9a84..2fcc7a7 100644 --- a/README +++ b/README @@ -88,3 +88,4 @@ qemu-system-x86_64 -hda arch.img -net nic \ # http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=How_to_run_OVMF (UEFI BIOS) # https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2/EdkShellBinPkg/FullShell/X64/Shell_Full.efi # https://wiki.archlinux.org/index.php/GRUB2 +# http://www.brianparsons.net/Best-Practices-For-Using-Arch-Linux-on-Servers/ diff --git a/archauto.sh b/archauto.sh index 35329f9..7640978 100755 --- a/archauto.sh +++ b/archauto.sh @@ -75,16 +75,22 @@ arch-chroot ${MOUNT_PATH} pacman --noconfirm -S net-tools # we use 'git' to manage our promises arch-chroot ${MOUNT_PATH} pacman --noconfirm -S git-core -arch-chroot ${MOUNT_PATH} pacman --noconfirm -U http://10.0.2.2:8080/qdbm-1.8.78-1-x86_64.pkg.tar.xz -arch-chroot ${MOUNT_PATH} pacman --noconfirm -U http://10.0.2.2:8080/cfengine-3.4.4-2-x86_64.pkg.tar.xz +# switch proxy off now, we go local now +unset http_proxy + +arch-chroot ${MOUNT_PATH} pacman --noconfirm -v -U http://10.0.2.2:8080/qdbm-1.8.78-1-x86_64.pkg.tar.xz +arch-chroot ${MOUNT_PATH} pacman --noconfirm -v -U http://10.0.2.2:8080/cfengine-3.4.4-2-x86_64.pkg.tar.xz # install rules for the machine from git +# TODO # enable cfengine -arch-chroot ${MOUNT_PATH} systemctl enable cf-execd -arch-chroot ${MOUNT_PATH} systemctl enable cf-monitord -arch-chroot ${MOUNT_PATH} systemctl enable cf-serverd +arch-chroot ${MOUNT_PATH} systemctl enable cf-execd.service +arch-chroot ${MOUNT_PATH} systemctl enable cf-monitord.service +arch-chroot ${MOUNT_PATH} systemctl enable cf-serverd.service + +echo "Done. Press any key to poweroff." -echo "Done." +read x systemctl poweroff -- cgit v1.2.3-54-g00ecf