mirror of
https://github.com/nix-community/disko.git
synced 2024-09-17 09:37:17 +03:00
parent
1144887c6f
commit
169e99dc3d
@ -126,8 +126,10 @@ in
|
||||
MNTPOINT=$(mktemp -d)
|
||||
mount ${config.device} "$MNTPOINT" -o subvol=/
|
||||
trap 'umount $MNTPOINT; rm -rf $MNTPOINT' EXIT
|
||||
btrfs subvolume create "$MNTPOINT"/${subvol.name} ${toString subvol.extraArgs}
|
||||
${swapCreate "$MNTPOINT/${subvol.name}" subvol.swap}
|
||||
SUBVOL_ABS_PATH="$MNTPOINT/${subvol.name}"
|
||||
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)}
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user