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>2020-03-27 19:32:36 -0400
commitedb88ec9f8af2c01eb14a655ec86580ee155578e (patch)
treee1edacf018388ea37810e0f9d3f1369f7ae6feb5 /configs/profile/root-image/root/customize_root_image.sh
parente9aa50f8f61fe26569f4aa331583d8a071897fee (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..c4b59eb 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"