mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 21:43:29 +01:00
tree-wise: quote path correctlys
This commit is contained in:
1 parent
329d3d7e8b
commit
8f806681d7
3 files changed
+20
-16
No files matched your search
+2
-2
@@ -160,7 +160,7 @@ in
|
||||
(
|
||||
MNTPOINT=$(mktemp -d)
|
||||
mount ${device} "$MNTPOINT" -o subvol=/
|
||||
trap 'umount $MNTPOINT; rm -rf $MNTPOINT' EXIT
|
||||
trap 'umount "$MNTPOINT"; rm -rf "$MNTPOINT"' EXIT
|
||||
${swapCreate "$MNTPOINT" config.swap}
|
||||
)
|
||||
''}
|
||||
@@ -168,7 +168,7 @@ in
|
||||
(
|
||||
MNTPOINT=$(mktemp -d)
|
||||
mount "${config.device}" "$MNTPOINT" -o subvol=/
|
||||
trap 'umount $MNTPOINT; rm -rf $MNTPOINT' EXIT
|
||||
trap 'umount "$MNTPOINT"; rm -rf "$MNTPOINT"' EXIT
|
||||
SUBVOL_ABS_PATH="$MNTPOINT/${subvol.name}"
|
||||
mkdir -p "$(dirname "$SUBVOL_ABS_PATH")"
|
||||
if ! btrfs subvolume show "$SUBVOL_ABS_PATH" > /dev/null 2>&1; then
|
||||
|
||||
Reference in new issue
Block a user