nixos/systemd-repart: fix
Since v253, systemd-repart tries to create temporary directories in /var/tmp. However, this directory doesn't exist in the initrd. This commit adds an enviroment variable to re-use the existing /tmp directory instead of /var/tmp.
This commit is contained in:
parent
b15daed965
commit
5c2a7490cf
|
@ -88,6 +88,11 @@ in
|
|||
|
||||
# Override defaults in upstream unit.
|
||||
services.systemd-repart = {
|
||||
# systemd-repart tries to create directories in /var/tmp by default to
|
||||
# store large temporary files that benefit from persistence on disk. In
|
||||
# the initrd, however, /var/tmp does not provide more persistence than
|
||||
# /tmp, so we re-use it here.
|
||||
environment."TMPDIR" = "/tmp";
|
||||
# Unset the conditions as they cannot be met before activation because
|
||||
# the definition files are not stored in the expected locations.
|
||||
unitConfig.ConditionDirectoryNotEmpty = [
|
||||
|
@ -119,5 +124,4 @@ in
|
|||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue