summaryrefslogtreecommitdiff
path: root/http/install-chroot.sh
diff options
context:
space:
mode:
authorTyler Dence <tyzoid.d@gmail.com>2018-06-21 10:52:52 -0400
committerTyler Dence <tyzoid.d@gmail.com>2018-06-21 10:54:31 -0400
commit4fa8f6b2875cc179b329ff5ce228e160ba72e42a (patch)
tree9640371734e19176d6ac1c3f458ad54b093dca9f /http/install-chroot.sh
parent94a2ad8818d02a2edf2cb74e1ddd7b1fff13e24b (diff)
downloadarch-boxes32-4fa8f6b2875cc179b329ff5ce228e160ba72e42a.tar.xz
Create development vagrant imagedev-build
Diffstat (limited to 'http/install-chroot.sh')
-rw-r--r--http/install-chroot.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/http/install-chroot.sh b/http/install-chroot.sh
index 7e71282..db65f60 100644
--- a/http/install-chroot.sh
+++ b/http/install-chroot.sh
@@ -8,6 +8,36 @@ sed -i -e 's/^#\(en_US.UTF-8\)/\1/' /etc/locale.gen
locale-gen
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
+# Updating to testing
+cat <<EOF > /etc/pacman.conf
+
+[options]
+HoldPkg = pacman glibc
+Architecture = auto
+CheckSpace
+
+SigLevel = Required DatabaseOptional
+LocalFileSigLevel = Optional
+
+[staging]
+Include = /etc/pacman.d/mirrorlist
+
+[testing]
+Include = /etc/pacman.d/mirrorlist
+
+[core]
+Include = /etc/pacman.d/mirrorlist
+
+[extra]
+Include = /etc/pacman.d/mirrorlist
+
+[community-testing]
+Include = /etc/pacman.d/mirrorlist
+
+[community]
+Include = /etc/pacman.d/mirrorlist
+EOF
+
# setting vagrant user credentials
echo -e 'vagrant\nvagrant' | passwd
useradd -m -U vagrant
@@ -55,3 +85,5 @@ systemctl enable systemd-resolved
grub-install "$device"
sed -i -e 's/^GRUB_TIMEOUT=.*$/GRUB_TIMEOUT=1/' /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
+
+pacman -Syu --noconfirm