tests: check canmount ZFS flag is respected

This commit is contained in:
Michael Hoang authored and mergify[bot] committed 2024-01-01 01:09:11 +00:00
1 parent 0ce1b15b99
commit 583bdf4fc6
2 files changed
+53 -1

No files matched your search

+30
View File
@@ -59,6 +59,22 @@
};
};
};
a = {
type = "disk";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "storage2";
};
};
};
};
};
};
zpool = {
storage = {
@@ -73,6 +89,20 @@
};
};
};
storage2 = {
type = "zpool";
mountpoint = "/storage2";
rootFsOptions = {
canmount = "off";
};
datasets = {
dataset = {
type = "zfs_fs";
mountpoint = "/storage2/dataset";
};
};
};
};
};
}