1
1
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:
Lennart Poettering 2013-07-18 02:31:01 +02:00
parent c3bb87dbab
commit 2042249710

View File

@ -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;