blob: f92b37ee2f9056d50d0a3d35eeddda1f524fe096 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Test for https://github.com/NixOS/nixpkgs/pull/193469
{
name = "early-mount-options";
nodes.machine = {
virtualisation.fileSystems."/var" = {
fsType = "none";
options = [
"bind"
"nosuid"
"nodev"
"noexec"
];
device = "/var";
};
};
testScript = ''
machine.wait_for_unit("multi-user.target")
var_mount_info = machine.succeed("findmnt /var -n -o OPTIONS")
options = var_mount_info.strip().split(",")
assert "nosuid" in options and "nodev" in options and "noexec" in options
'';
}
|