mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-26 10:03:40 +03:00
mount: also exclude /usr from unmount at shutdown
This commit is contained in:
parent
c3bb87dbab
commit
2042249710
@ -1543,7 +1543,8 @@ static int mount_add_one(
|
||||
if (r < 0)
|
||||
goto fail;
|
||||
|
||||
if (!path_equal(where, "/")) {
|
||||
if (!path_equal(where, "/") &&
|
||||
!path_equal(where, "/usr")) {
|
||||
r = unit_add_dependency_by_name(u, UNIT_CONFLICTS, SPECIAL_UMOUNT_TARGET, NULL, true);
|
||||
if (r < 0)
|
||||
goto fail;
|
||||
|
Loading…
x
Reference in New Issue
Block a user