installer: route install through system and user phases

This commit is contained in:
Ryan Hughes
2026-06-04 18:35:01 -04:00
parent 53e2611507
commit 0cfa1b66c4
16 changed files with 209 additions and 87 deletions
+3 -9
View File
@@ -1,15 +1,9 @@
# In offline (ISO chroot) mode systemd isn't running, so skip --now.
# Installs are followed by reboot, so enable units without starting/reloading
# running services during the install.
chrootable_systemctl_enable() {
if install_mode_is offline; then
sudo systemctl enable $1
else
sudo systemctl enable --now $1
fi
sudo systemctl enable $1
}
# Like chrootable_systemctl_enable but never passes --now. Use for services
# we shouldn't (re)start mid-install (iwd interrupts the network; docker and
# power-profiles-daemon should defer to first boot).
chrootable_systemctl_enable_only() {
sudo systemctl enable $1
}