X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/aeb4a79c5f5eb2fd20603a16edffa0a1a0c9aef3..ef1d036dce19a8a45605bbaa52bc2a9e5d6bd36a:/tools/compute-images/scripts/usr-local-bin-ensure-encrypted-partitions.sh diff --git a/tools/compute-images/scripts/usr-local-bin-ensure-encrypted-partitions.sh b/tools/compute-images/scripts/usr-local-bin-ensure-encrypted-partitions.sh index 08579bf192..a76dc12109 100644 --- a/tools/compute-images/scripts/usr-local-bin-ensure-encrypted-partitions.sh +++ b/tools/compute-images/scripts/usr-local-bin-ensure-encrypted-partitions.sh @@ -114,14 +114,14 @@ head -c321 /dev/urandom >"$KEYPATH" echo YES | cryptsetup luksFormat "$LVPATH" "$KEYPATH" cryptsetup --key-file "$KEYPATH" luksOpen "$LVPATH" "$(basename "$CRYPTPATH")" shred -u "$KEYPATH" -mkfs.xfs "$CRYPTPATH" +mkfs.xfs -f "$CRYPTPATH" # First make sure docker is not using /tmp, then unmount everything under it. if [ -d /etc/sv/docker.io ] then sv stop docker.io || service stop docker.io || true else - service docker stop || true + systemctl disable --now docker.service docker.socket || true fi ensure_umount "$MOUNTPATH/docker/aufs" @@ -143,7 +143,7 @@ then ## runit sv up docker.io else - service docker start + systemctl enable --now docker.service docker.socket || true fi end=$((SECONDS+60))