mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Armbian-install: disable Docker when installing images
enable back on exit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user