···8585 virtualisation.fileSystems."/".device = lib.mkForce "auto";
8686 };
87878888+ swap.configuration.swapDevices = lib.mkVMOverride [
8989+ { device = "/swapfile"; size = 1; }
9090+ ];
9191+8892 simpleService.configuration = {
8993 systemd.services.test = {
9094 wantedBy = [ "multi-user.target" ];
···736740 out = switch_to_specialisation("${machine}", "storeMountModified")
737741 assert_lacks(out, "stopping the following units:")
738742 assert_contains(out, "NOT restarting the following changed units: -.mount")
743743+ assert_contains(out, "reloading the following units: dbus.service\n")
744744+ assert_lacks(out, "\nrestarting the following units:")
745745+ assert_lacks(out, "\nstarting the following units:")
746746+ assert_lacks(out, "the following new units were started:")
747747+748748+ with subtest("swaps"):
749749+ switch_to_specialisation("${machine}", "")
750750+ # add a swap
751751+ out = switch_to_specialisation("${machine}", "swap")
752752+ assert_lacks(out, "stopping the following units:")
753753+ assert_lacks(out, "NOT restarting the following changed units:")
754754+ assert_contains(out, "reloading the following units: dbus.service\n")
755755+ assert_lacks(out, "\nrestarting the following units:")
756756+ assert_lacks(out, "\nstarting the following units:")
757757+ assert_contains(out, "the following new units were started: swapfile.swap")
758758+ # remove it
759759+ out = switch_to_specialisation("${machine}", "")
760760+ assert_contains(out, "stopping swap device: /swapfile")
761761+ assert_lacks(out, "stopping the following units:")
762762+ assert_lacks(out, "NOT restarting the following changed units:")
739763 assert_contains(out, "reloading the following units: dbus.service\n")
740764 assert_lacks(out, "\nrestarting the following units:")
741765 assert_lacks(out, "\nstarting the following units:")