mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
Make bcachefs subvolumes boot-time mount tests pass + more tests
This commit is contained in:
1 parent
d0c543d740
commit
404786c442
4 files changed
+167
-176
No files matched your search
@@ -113,10 +113,7 @@
|
||||
mountpoint = lib.mkOption {
|
||||
type = lib.types.nullOr diskoLib.optionTypes.absolute-pathname;
|
||||
default = null;
|
||||
description = ''
|
||||
Path to mount the subvolume to.
|
||||
DO NOT USE. Currently not working.
|
||||
'';
|
||||
description = "Path to mount the subvolume to.";
|
||||
example = "/";
|
||||
};
|
||||
};
|
||||
@@ -126,7 +123,19 @@
|
||||
default = { };
|
||||
description = "List of subvolumes to define.";
|
||||
example = {
|
||||
"subvolumes/home" = { };
|
||||
"subvolumes/root" = {
|
||||
mountpoint = "/";
|
||||
extraFormatArgs = [
|
||||
"--compression=lz4"
|
||||
"--background_compression=lz4"
|
||||
];
|
||||
mountOptions = [
|
||||
"verbose"
|
||||
];
|
||||
};
|
||||
"subvolumes/home" = {
|
||||
mountpoint = "/home";
|
||||
};
|
||||
};
|
||||
};
|
||||
_parent = lib.mkOption {
|
||||
@@ -291,7 +300,6 @@
|
||||
_config = lib.mkOption {
|
||||
internal = true;
|
||||
readOnly = true;
|
||||
# @todo Check that this implementation is correct:
|
||||
default =
|
||||
(lib.optional (config.mountpoint != null) {
|
||||
fileSystems.${config.mountpoint} = {
|
||||
|
||||
Reference in new issue
Block a user