Fix enabling of systemd services

This commit is contained in:
Dennis ten Hoove 2023-09-10 08:56:08 +02:00
parent 41e6d25056
commit 2e5de7acb5

View file

@ -132,14 +132,13 @@ if [[ $type == 'archlinux' ]]; then
fi fi
# Enable systemd services if requested # Enable systemd services if requested
# # FIXME: BUG?
if [[ -e arkanium-build.d/$variant/systemd.services ]]; then if [[ -e arkanium-build.d/$variant/systemd.services ]]; then
printf '\e[1;34m-->\e[0m\e[1m Enabling systemd services...\e[0m\n' printf '\e[1;34m-->\e[0m\e[1m Enabling systemd services...\e[0m\n'
readarray services < arkanium-build.d/$variant/systemd.services readarray services < arkanium-build.d/$variant/systemd.services
for service in services; do for service in ${services[*]}; do
arch-chroot $workdir systemctl enable $service arch-chroot $workdir systemctl enable $service
done done