Armbian-install: disable Docker when installing images

enable back on exit
This commit is contained in:
Igor Pecovnik
2025-03-06 15:17:45 +01:00
committed by Igor
parent 998e540fad
commit 3473794977

View File

@@ -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