armbian_build/lib/functions/rootfs/rootfs-desktop.sh
Ricardo Pardini 2f7423d0e4
shellfmt/.editorconfig: enable trim whitespaces, run shellfmt, no actual code changes (#4849)
- shellfmt: bump to 3.6.0 (run with `bash lib/tools/shellfmt.sh`)
- .editorconfig: rationalize, remove duplicated logic
2023-02-23 09:24:41 +01:00

26 lines
850 B
Bash

#!/usr/bin/env bash
# a-kind-of-hook, called by install_distribution_agnostic() if it's a desktop build
function desktop_postinstall() {
# disable display manager for the first run
disable_systemd_service_sdcard lightdm.service
disable_systemd_service_sdcard gdm3.service
# @TODO: why?
display_alert "Updating package lists" "for desktop" "info"
do_with_retries 3 chroot_sdcard_apt_get_update
# @TODO: rpardini: this is... missing from aggregation...? it is used by 2 boards.
# install per board packages, desktop-only, packages.
if [[ -n ${PACKAGE_LIST_DESKTOP_BOARD} ]]; then
chroot_sdcard_apt_get_install "$PACKAGE_LIST_DESKTOP_BOARD"
fi
# install per family packages (desktop only)
if [[ -n ${PACKAGE_LIST_DESKTOP_FAMILY} ]]; then # @TODO: used by 0 boards
chroot_sdcard_apt_get_install "$PACKAGE_LIST_DESKTOP_FAMILY"
fi
}