armbian_build/lib/functions/rootfs/systemd-utils.sh
Ricardo Pardini 4d17aa2a98
armbian-next: rootfs: bunch'o'fixes, introduce disable_systemd_service_sdcard() to stop repeating incantantion
- fix a bunch of quoting issues
- use runners for chroot stuff
- don't error out of failed disable
- makes building `sid` again possible
- add a bunch of TODO's
2023-02-18 07:42:48 -03:00

8 lines
236 B
Bash

function disable_systemd_service_sdcard() {
display_alert "Disabling systemd service(s) on target" "${*}" "debug"
declare service
for service in "${@}"; do
chroot_sdcard systemctl --no-reload disable "${service}" "||" true
done
}