Skip to content

Commit 3473794

Browse files
committed
Armbian-install: disable Docker when installing images
enable back on exit
1 parent 998e540 commit 3473794

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
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
@@ -136,6 +136,9 @@ create_armbian()
136136
# UUID=xxx...
137137
satauuid=$(blkid -o export "$2" | grep -w UUID)
138138

139+
# disable docker before start
140+
systemctl is-active --quiet docker && systemctl stop docker
141+
139142
# write information to log
140143
echo -e "\nOld UUID: ${root_uuid}" >> $logfile
141144
echo "SD UUID: $sduuid" >> $logfile

0 commit comments

Comments
 (0)