Add dummy files to get correct tmproot parent permissions

This commit is contained in:
Jack O'Sullivan 2023-10-31 16:16:02 +00:00
parent 9e9d6404ac
commit df1febec6f
2 changed files with 8 additions and 1 deletions

View File

@ -150,6 +150,10 @@ in
]; ];
files = [ files = [
"/etc/machine-id" "/etc/machine-id"
# Just to make sure we get correct default perms
"/var/lib/.tmproot.dummy"
"/var/cache/.tmproot.dummy"
]; ];
}; };
}; };

View File

@ -66,12 +66,15 @@ in
}; };
in in
{ {
files = map (file: { files = (map (file: {
inherit file; inherit file;
parentDirectory = perms; parentDirectory = perms;
}) [ }) [
"/home/${user'.name}/.bash_history" "/home/${user'.name}/.bash_history"
"/home/${user'.name}/.lesshst" "/home/${user'.name}/.lesshst"
]) ++ [
# Just to make sure we get correct default perms
"/home/.tmproot.dummy"
]; ];
directories = map (directory: { directories = map (directory: {
inherit directory; inherit directory;