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
This commit is contained in:
Ricardo Pardini
2023-01-14 22:49:18 +01:00
parent b94074ec0a
commit 4d17aa2a98
6 changed files with 52 additions and 36 deletions

View File

@@ -4,12 +4,13 @@
desktop_postinstall() {
# disable display manager for the first run
chroot_sdcard "systemctl --no-reload disable lightdm.service"
chroot_sdcard "systemctl --no-reload disable gdm3.service"
disable_systemd_service_sdcard lightdm.service
disable_systemd_service_sdcard gdm3.service
# update packages index
chroot_sdcard_apt_get "update"
# @TODO: rpardini: this is... missing from aggregation...?
# install per board packages
if [[ -n ${PACKAGE_LIST_DESKTOP_BOARD} ]]; then
chroot_sdcard_apt_get_install "$PACKAGE_LIST_DESKTOP_BOARD"