From abb35bcb7795cd14bd00387bfd8dc82eeff5b047 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 17 May 2013 12:12:39 +0200 Subject: small local repo fixes --- archauto.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'archauto.sh') diff --git a/archauto.sh b/archauto.sh index 3974678..0463eac 100755 --- a/archauto.sh +++ b/archauto.sh @@ -41,6 +41,8 @@ export no_proxy=localhost,10.0.2.2 # use our local cache sed -i '/\[core\]/aServer = http://10.0.2.2:8080/$repo/os/$arch' /etc/pacman.conf +sed -i '/\[extra\]/aServer = http://10.0.2.2:8080/$repo/os/$arch' /etc/pacman.conf +sed -i '/\[community\]/aServer = http://10.0.2.2:8080/$repo/os/$arch' /etc/pacman.conf # switch off signature for now sed -i 's/^SigLevel.*/SigLevel = Never/g' /etc/pacman.conf @@ -49,6 +51,14 @@ pacstrap ${MOUNT_PATH} filesystem grep findutils coreutils glibc bash pacman mki # use our local cache in installed pacman sed -i '/\[core\]/aServer = http://10.0.2.2:8080/$repo/os/$arch' ${MOUNT_PATH}/etc/pacman.conf +sed -i '/\[extra\]/aServer = http://10.0.2.2:8080/$repo/os/$arch' ${MOUNT_PATH}/etc/pacman.conf +sed -i '/\[community\]/aServer = http://10.0.2.2:8080/$repo/os/$arch' ${MOUNT_PATH}/etc/pacman.conf + +# add our local packages into a separate repository +printf "\n[aba]\nServer = http://10.0.2.2:8080/\044repo/os/\044arch\n" >> ${MOUNT_PATH}/etc/pacman.conf + +# synchronize package databases for installed pacman +arch-chroot ${MOUNT_PATH} pacman -Sy # switch off signature for now in installed pacman sed -i 's/^SigLevel.*/SigLevel = Never/g' ${MOUNT_PATH}/etc/pacman.conf @@ -92,8 +102,7 @@ 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 -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 +arch-chroot ${MOUNT_PATH} pacman --noconfirm -S cfengine # install rules for the machine from git arch-chroot ${MOUNT_PATH} git clone ${GIT_REPO} /srv/cfengine/masterfiles -- cgit v1.2.3-54-g00ecf