disko-install: make output deterministic

Fixes #827
This commit is contained in:
Felix Uhl
2024-10-14 11:00:15 +02:00
committed by mergify[bot]
parent 3b778f10eb
commit 9ab6ae4e63

View File

@@ -190,8 +190,9 @@ main() {
exit 1
fi
mountPoint=$(mktemp -d)
chmod 755 "${mountPoint}" # bchachefs wants 755
mountPoint="/mnt/disko-install-root"
mkdir -p "${mountPoint}"
chmod 755 "${mountPoint}" # bcachefs wants 755
escapeMountPoint=$(printf '%q' "$mountPoint")
# shellcheck disable=SC2064
trap "cleanupMountPoint ${escapeMountPoint}" EXIT