mirror of
https://github.com/nix-community/disko.git
synced 2026-12-03 06:23:28 +01:00
1 parent
1144887c6f
commit
169e99dc3d
1 file changed
+4
-2
+4
-2
@@ -126,8 +126,10 @@ in
|
|||||||
MNTPOINT=$(mktemp -d)
|
MNTPOINT=$(mktemp -d)
|
||||||
mount ${config.device} "$MNTPOINT" -o subvol=/
|
mount ${config.device} "$MNTPOINT" -o subvol=/
|
||||||
trap 'umount $MNTPOINT; rm -rf $MNTPOINT' EXIT
|
trap 'umount $MNTPOINT; rm -rf $MNTPOINT' EXIT
|
||||||
btrfs subvolume create "$MNTPOINT"/${subvol.name} ${toString subvol.extraArgs}
|
SUBVOL_ABS_PATH="$MNTPOINT/${subvol.name}"
|
||||||
${swapCreate "$MNTPOINT/${subvol.name}" subvol.swap}
|
mkdir -p "$(dirname "$SUBVOL_ABS_PATH")"
|
||||||
|
btrfs subvolume create "$SUBVOL_ABS_PATH" ${toString subvol.extraArgs}
|
||||||
|
${swapCreate "$SUBVOL_ABS_PATH" subvol.swap}
|
||||||
)
|
)
|
||||||
'') (lib.attrValues config.subvolumes)}
|
'') (lib.attrValues config.subvolumes)}
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in new issue
Block a user