Add disk.destroy option

This commit is contained in:
Philipp Schmitt authored and Jörg Thalheim committed 2025-05-08 09:13:14 +00:00
1 parent c7e0b00007
commit aa5d53aee8
2 files changed
+22 -3

No files matched your search

+5
View File
@@ -22,6 +22,11 @@
type = diskoLib.optionTypes.absolute-pathname; # TODO check if subpath of /dev ? - No! eg: /.swapfile
description = "Device path";
};
destroy = lib.mkOption {
type = lib.types.bool;
default = true;
description = "If false, disko will not wipe or destroy this disk's contents during the destroy stage";
};
imageName = lib.mkOption {
type = lib.types.str;
default = config.name;