mirror of
https://github.com/systemd/systemd
synced 2024-10-15 04:24:19 +00:00
tmpfiles: make sure "R" lines also remove subvolumes
This commit is contained in:
parent
14bcf25c8b
commit
1b26f09eb0
|
@ -1465,7 +1465,7 @@ static int remove_item_instance(Item *i, const char *instance) {
|
|||
/* FIXME: we probably should use dir_cleanup() here
|
||||
* instead of rm_rf() so that 'x' is honoured. */
|
||||
log_debug("rm -rf \"%s\"", instance);
|
||||
r = rm_rf(instance, (i->type == RECURSIVE_REMOVE_PATH ? REMOVE_ROOT : 0) | REMOVE_PHYSICAL);
|
||||
r = rm_rf(instance, (i->type == RECURSIVE_REMOVE_PATH ? REMOVE_ROOT|REMOVE_SUBVOLUME : 0) | REMOVE_PHYSICAL);
|
||||
if (r < 0 && r != -ENOENT)
|
||||
return log_error_errno(r, "rm_rf(%s): %m", instance);
|
||||
|
||||
|
|
Loading…
Reference in a new issue