From 60cd84383d98b858b5df5c9520775b305dca459a Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sat, 28 Sep 2019 01:03:41 +0200 Subject: [PATCH] Bugfix: run apt update when installing desktop since we use cached rootfs. Up with version. --- VERSION | 2 +- lib/desktop.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 7bb1736128..2552a536db 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.97 +5.98 diff --git a/lib/desktop.sh b/lib/desktop.sh index cdbba2dc38..a305200fa3 100644 --- a/lib/desktop.sh +++ b/lib/desktop.sh @@ -120,7 +120,10 @@ desktop_postinstall () { # disable display manager for first run chroot "${SDCARD}" /bin/bash -c "systemctl --no-reload disable lightdm.service >/dev/null 2>&1" - [[ ${FULL_DESKTOP} == yes ]] && chroot "${SDCARD}" /bin/bash -c "DEBIAN_FRONTEND=noninteractive apt-get -yqq --no-install-recommends install $PACKAGE_LIST_DESKTOP_FULL" >> "${DEST}"/debug/install.log + if [[ ${FULL_DESKTOP} == yes ]]; then + chroot "${SDCARD}" /bin/bash -c "DEBIAN_FRONTEND=noninteractive apt-get update" >> "${DEST}"/debug/install.log + chroot "${SDCARD}" /bin/bash -c "DEBIAN_FRONTEND=noninteractive apt update; apt-get -yqq --no-install-recommends install $PACKAGE_LIST_DESKTOP_FULL" >> "${DEST}"/debug/install.log + fi # Compile Turbo Frame buffer for sunxi if [[ $LINUXFAMILY == sun* && $BRANCH == default ]]; then