1 # Test for https://github.com/NixOS/nixpkgs/pull/193469
2 import ./make-test-python.nix {
3 name = "early-mount-options";
6 virtualisation.fileSystems."/var" = {
7 options = [ "bind" "nosuid" "nodev" "noexec" ];
13 machine.wait_for_unit("multi-user.target")
15 var_mount_info = machine.succeed("findmnt /var -n -o OPTIONS")
16 options = var_mount_info.strip().split(",")
17 assert "nosuid" in options and "nodev" in options and "noexec" in options