armbian_build/lib/functions/rootfs/rootfs-desktop.sh
Ricardo Pardini a6a5152695
armbian-next: chroot_sdcard_apt_get_update() to replace and better log chroot_sdcard_apt_get update
- also add retries where it was missing
- @TODO: desktop_postinstall() is a mess, needs aggregation work
2023-02-18 07:43:19 -03:00

26 lines
851 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
}