projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
17417: Merge branch 'main' into 17417-add-arm64
[arvados.git]
/
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 08579bf192fe5038974119e99743cf43961ca701..462158e043fc58213943aac2514081fb6fbba5ee 100644
(file)
--- 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,7
+114,7
@@
head -c321 /dev/urandom >"$KEYPATH"
echo YES | cryptsetup luksFormat "$LVPATH" "$KEYPATH"
cryptsetup --key-file "$KEYPATH" luksOpen "$LVPATH" "$(basename "$CRYPTPATH")"
shred -u "$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 ]
# First make sure docker is not using /tmp, then unmount everything under it.
if [ -d /etc/sv/docker.io ]