systemd: systemd.tmpfiles.settings test

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
phanirithvij 2024-11-01 18:11:46 +05:30
parent 91323fb350
commit 79cd7d93e6
2 changed files with 9 additions and 0 deletions

View file

@ -80,5 +80,10 @@
) )
); );
systemd.tmpfiles.rules = [ "D /var/tmp/system-manager 0755 root root -" ]; systemd.tmpfiles.rules = [ "D /var/tmp/system-manager 0755 root root -" ];
systemd.tmpfiles.settings.sample = {
"/var/tmp/sample".d = {
mode = "0755";
};
};
}; };
} }

View file

@ -175,6 +175,10 @@ forEachUbuntuImage "example" {
vm.fail("grep -F 'launch_the_rockets = false' /etc/foo.conf") vm.fail("grep -F 'launch_the_rockets = false' /etc/foo.conf")
vm.succeed("test -d /var/tmp/system-manager") vm.succeed("test -d /var/tmp/system-manager")
vm.succeed("test -d /var/tmp/sample")
vm.succeed("test -f /etc/tmpfiles.d/sample.conf")
vm.succeed("test -f /etc/tmpfiles.d/00-system-manager.conf")
${system-manager.lib.activateProfileSnippet { ${system-manager.lib.activateProfileSnippet {
node = "vm"; node = "vm";