Skip to content

Commit

Permalink
Generator dirs might be on a real filesystem
Browse files Browse the repository at this point in the history
Most of the time, tmpfs is used for /tmp, but this is not required.
Applied to both pid1 and systemd-analyze verify.

Fixes #8592.
  • Loading branch information
keszybz committed May 22, 2018
1 parent 265e9be commit 114110c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/shared/path-lookup.c
Expand Up @@ -828,14 +828,14 @@ void lookup_paths_flush_generator(LookupPaths *p) {
/* Flush the generated unit files in full */

if (p->generator)
(void) rm_rf(p->generator, REMOVE_ROOT);
(void) rm_rf(p->generator, REMOVE_ROOT|REMOVE_PHYSICAL);
if (p->generator_early)
(void) rm_rf(p->generator_early, REMOVE_ROOT);
(void) rm_rf(p->generator_early, REMOVE_ROOT|REMOVE_PHYSICAL);
if (p->generator_late)
(void) rm_rf(p->generator_late, REMOVE_ROOT);
(void) rm_rf(p->generator_late, REMOVE_ROOT|REMOVE_PHYSICAL);

if (p->temporary_dir)
(void) rm_rf(p->temporary_dir, REMOVE_ROOT);
(void) rm_rf(p->temporary_dir, REMOVE_ROOT|REMOVE_PHYSICAL);
}

char **generator_binary_paths(UnitFileScope scope) {
Expand Down

1 comment on commit 114110c

@markstos
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

Please sign in to comment.