summaryrefslogtreecommitdiff
path: root/configs/profile/root-image/root/customize_root_image.sh
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2018-05-03 16:06:59 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2018-07-02 10:50:36 -0400
commitaba3ee6528d73fcf8c3ca8210d117f3b9367616f (patch)
tree3cc4a2ffd37641b349afe95ea2873eb806bce22e /configs/profile/root-image/root/customize_root_image.sh
parent139fb6038f7c00fd1c2d9284d24e2a1ef36a64a4 (diff)
squashme - houskeeping
Diffstat (limited to 'configs/profile/root-image/root/customize_root_image.sh')
-rwxr-xr-xconfigs/profile/root-image/root/customize_root_image.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/configs/profile/root-image/root/customize_root_image.sh b/configs/profile/root-image/root/customize_root_image.sh
index 04990ac..163cde4 100755
--- a/configs/profile/root-image/root/customize_root_image.sh
+++ b/configs/profile/root-image/root/customize_root_image.sh
@@ -17,6 +17,8 @@ chmod 440 /etc/sudoers.d/g_wheel
# configure pacman
sed -i "s|#Server|Server|" /etc/pacman.d/mirrorlist
+[ "${INSTALL_TYPE}" == 'Complete' ] && pacman_conf=pacman-offline.conf || pacman_conf=pacman-online.conf
+cp /etc/${pacman_conf} /etc/pacman.conf
# KLUDGE begin # FIXME: https://labs.parabola.nu/issues/1527
# if [[ "${arch}" == "i686" ]]
# then echo "Server = https://repo.parabola.nu/\$repo/os/\$arch" > /etc/pacman.d/mirrorlist