diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-07-18 02:31:01 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-07-18 02:32:34 +0200 |
commit | 20422497109aaba1d214f1597530de8b8788a526 (patch) | |
tree | 6d7e701105d948f1b3b5a45fe854cd6d695e8752 | |
parent | c3bb87dbab8b79bb9253407cb5b7f3e6fe8db395 (diff) |
mount: also exclude /usr from unmount at shutdown
-rw-r--r-- | src/core/mount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index 58a3f1160f..c7d29b0c88 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -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; |