Skip to content

Commit b50ac8d

Browse files
committedMar 9, 2025
Armbian-install: disable Docker when installing images
enable back on exit
1 parent fad71e1 commit b50ac8d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎packages/bsp/common/usr/bin/armbian-install

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# $4 = :space: separated list of all MTD device names
2121
# Note: MTD char device names are passed in format device_name:partition_label - e.g.: mtd0:SPL
2222

23-
trap "exit" INT TERM
23+
trap "systemctl start docker >/dev/null 2>&1; exit" INT TERM
2424
[[ $EUID != 0 ]] && exec sudo "$0" "$@"
2525

2626
[[ -f /usr/lib/u-boot/platform_install.sh ]] && source /usr/lib/u-boot/platform_install.sh
@@ -126,6 +126,9 @@ create_armbian()
126126
# UUID=xxx...
127127
satauuid=$(blkid -o export "$2" | grep -w UUID)
128128

129+
# disable docker before start
130+
systemctl is-active --quiet docker && systemctl stop docker
131+
129132
# write information to log
130133
echo -e "\nOld UUID: ${root_uuid}" >> $logfile
131134
echo "SD UUID: $sduuid" >> $logfile

0 commit comments

Comments
 (0)
Failed to load comments.