zfs: print snapshots on activation
This commit is contained in:
parent
3432df47f1
commit
271bc1dc0b
1 changed files with 4 additions and 3 deletions
|
|
@ -249,9 +249,10 @@ in
|
||||||
let
|
let
|
||||||
recursiveFlag = lib.optionalString cfg.snapshotBeforeActivation.recursive "-r";
|
recursiveFlag = lib.optionalString cfg.snapshotBeforeActivation.recursive "-r";
|
||||||
in
|
in
|
||||||
lib.concatMapStringsSep "\n" (ds: "zfs snapshot ${recursiveFlag} ${ds}@\"$name\"") (
|
lib.concatMapStringsSep "\n" (ds: ''
|
||||||
lib.uniqueStrings datasets
|
echo "Taking ZFS snapshot of ${ds}@$name"
|
||||||
)
|
zfs snapshot ${recursiveFlag} ${ds}@"$name"
|
||||||
|
'') (lib.uniqueStrings datasets)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue