armbian_build/lib/functions/rootfs/rootfs-desktop.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

25 lines
684 B
Bash

#!/usr/bin/env bash
# a-kind-of-hook, called by install_distribution_agnostic() if it's a desktop build
desktop_postinstall() {
# disable display manager for the first run
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"
fi
# install per family packages
if [[ -n ${PACKAGE_LIST_DESKTOP_FAMILY} ]]; then
chroot_sdcard_apt_get_install "$PACKAGE_LIST_DESKTOP_FAMILY"
fi
}