From 1f00d17de712cceba6c02dc8cd8672abf3a8ea60 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 6 Jun 2025 14:02:04 +0300 Subject: [PATCH] deb-update.bash: move rpm-ostree to the end --- bash/deb-update.bash | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/bash/deb-update.bash b/bash/deb-update.bash index 2e551ab..d622a4d 100755 --- a/bash/deb-update.bash +++ b/bash/deb-update.bash @@ -58,13 +58,6 @@ if [[ -f /usr/bin/dnf && ! -d /sysroot/ostree ]]; then # potentially unsafe, see a few lines above and the apt-get section dnf "$@" autoremove -elif [[ -f /usr/bin/rpm-ostree && -d /sysroot/ostree ]]; then - rpm-ostree upgrade --check - sleep 5 - rpm-ostree upgrade - sleep 5 - rpm-ostree status -v - sleep 5 fi # Arch Linux package management @@ -163,5 +156,14 @@ if [ -f /root/fixgrub.bash ]; then . /root/fixgrub.bash fi +if [[ -f /usr/bin/rpm-ostree && -d /sysroot/ostree ]]; then + rpm-ostree upgrade --check + sleep 5 + rpm-ostree upgrade + sleep 5 + rpm-ostree status -v + sleep 5 +fi + # Hide commands being executed again set +x