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>2019-03-30 09:01:50 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2019-05-07 09:23:28 -0400
commit6ef5115e9385823be16b98774542a645e627225a (patch)
tree1821d72176082716f58d7a531b3ec3867f93c753 /configs/profile/root-image/root/customize_root_image.sh
parent1b1621bee189a09f331ff71fd0e43c548b2b3901 (diff)
enable [nonsystemd] for openrc ISOs
Diffstat (limited to 'configs/profile/root-image/root/customize_root_image.sh')
-rwxr-xr-xconfigs/profile/root-image/root/customize_root_image.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/configs/profile/root-image/root/customize_root_image.sh b/configs/profile/root-image/root/customize_root_image.sh
index eda5c64..816ee45 100755
--- a/configs/profile/root-image/root/customize_root_image.sh
+++ b/configs/profile/root-image/root/customize_root_image.sh
@@ -22,8 +22,9 @@ chmod 440 /etc/sudoers.d/g_wheel
LOG_CONFIG "pacman"
sed -i "s|#Server|Server|" /etc/pacman.d/mirrorlist
-[ "${INSTALL_TYPE}" == 'Complete' ] && cp /etc/pacman-offline.conf /etc/pacman.conf || \
- cp /etc/pacman-online.conf /etc/pacman.conf
+[[ "${ISO_INIT}" == 'openrc' ]] && sed -i $NONSYSTEMD_REGEX /etc/pacman-online.conf
+[[ "${INSTALL_TYPE}" == 'Complete' ]] && cp /etc/pacman-offline.conf /etc/pacman.conf || \
+ cp /etc/pacman-online.conf /etc/pacman.conf
LOG_CONFIG "services"