diff options
-rwxr-xr-x | script/deb-systemd-helper | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/deb-systemd-helper b/script/deb-systemd-helper index 41f8ebb..0f321c3 100755 --- a/script/deb-systemd-helper +++ b/script/deb-systemd-helper @@ -512,6 +512,9 @@ for my $scriptname (@ARGV) { if ($action eq 'unmask') { unmask_service($scriptname, $service_path); + # Clean up the state dir if it’s empty, or at least clean up all empty + # subdirectories. Necessary to cleanly pass a piuparts run. + rmdir_if_empty('/var/lib/systemd/deb-systemd-helper-masked'); } } |