mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-13 12:58:20 +03:00
homed: don't drop caches on activation
We should drop caches if we are configured to do so in all cases where we are done with home dir operations: except if that operation is activation, because in that case we are not destroying anything, but leaving it on. Hence, turn off the flag that reminds us that we should drop caches before exiting, once activation completed fully, Follow-up for 86019efa4416d7b548cab321c15bc22a65463786
This commit is contained in:
parent
20e458ae3c
commit
aa0379f16f
@ -133,6 +133,7 @@ int home_activate_cifs(
|
||||
return r;
|
||||
|
||||
setup->undo_mount = false;
|
||||
setup->do_drop_caches = false;
|
||||
|
||||
log_info("Everything completed.");
|
||||
|
||||
|
@ -72,6 +72,8 @@ int home_activate_directory(
|
||||
return r;
|
||||
}
|
||||
|
||||
setup->do_drop_caches = false;
|
||||
|
||||
log_info("Everything completed.");
|
||||
|
||||
*ret_home = TAKE_PTR(new_home);
|
||||
|
@ -1475,6 +1475,7 @@ int home_activate_luks(
|
||||
setup->undo_dm = false;
|
||||
setup->do_offline_fallocate = false;
|
||||
setup->do_mark_clean = false;
|
||||
setup->do_drop_caches = false;
|
||||
|
||||
log_info("Everything completed.");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user