disko-install: make output deterministic

Fixes #827
This commit is contained in:
Felix Uhl authored and mergify[bot] committed 2024-10-15 16:36:09 +00:00
1 parent 3b778f10eb
commit 9ab6ae4e63
1 file changed
+3 -2
+3 -2
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