The release v2.22 (the new umount) introduces a regression when root
fs is excluded from umount --all. There is not reason for this
exception. The libmount should be smart enough to disable mtab update
after rootfs umount.
Reported-by: Bruce Dubbs <bruce.dubbs@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
DBG(CXT, mnt_debug_h(cxt, "next-umount: trying %s", tgt));
- /* ignore root filesystem */
- if ((tgt && (strcmp(tgt, "/") == 0 || strcmp(tgt, "root") == 0)) ||
-
/* ignore filesystems not match with options patterns */
- (cxt->fstype_pattern && !mnt_fs_match_fstype(*fs,
+ if ((cxt->fstype_pattern && !mnt_fs_match_fstype(*fs,
cxt->fstype_pattern)) ||
/* ignore filesystems not match with type patterns */