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;