From 3473794977520973f583fc5f49bad1323032c0fc Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Thu, 6 Mar 2025 15:17:45 +0100 Subject: [PATCH] Armbian-install: disable Docker when installing images enable back on exit --- packages/bsp/common/usr/bin/armbian-install | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/bsp/common/usr/bin/armbian-install b/packages/bsp/common/usr/bin/armbian-install index 8cc98c0849..9a4a20701b 100755 --- a/packages/bsp/common/usr/bin/armbian-install +++ b/packages/bsp/common/usr/bin/armbian-install @@ -20,7 +20,7 @@ # $4 = :space: separated list of all MTD device names # Note: MTD char device names are passed in format device_name:partition_label - e.g.: mtd0:SPL -trap "exit" INT TERM +trap "systemctl start docker >/dev/null 2>&1; exit" INT TERM [[ $EUID != 0 ]] && exec sudo "$0" "$@" [[ -f /usr/lib/u-boot/platform_install.sh ]] && source /usr/lib/u-boot/platform_install.sh @@ -136,6 +136,9 @@ create_armbian() # UUID=xxx... satauuid=$(blkid -o export "$2" | grep -w UUID) + # disable docker before start + systemctl is-active --quiet docker && systemctl stop docker + # write information to log echo -e "\nOld UUID: ${root_uuid}" >> $logfile echo "SD UUID: $sduuid" >> $logfile