diff options
Diffstat (limited to 'libmount')
-rw-r--r-- | libmount/src/context.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libmount/src/context.c b/libmount/src/context.c index 14fa44b52..f623f34a7 100644 --- a/libmount/src/context.c +++ b/libmount/src/context.c @@ -2051,13 +2051,8 @@ int mnt_context_apply_fstab(struct libmnt_context *cxt) cxt->optsmode &= ~MNT_OMODE_FORCE; } - if (mnt_context_get_mflags(cxt, &mflags) == 0 && mflags & MS_REMOUNT) { - /* preffer mtab on remount */ - DBG(CXT, ul_debugobj(cxt, "force mtab parsing on remount")); - cxt->optsmode |= MNT_OMODE_MTAB; - cxt->optsmode &= ~MNT_OMODE_FSTAB; + if (mnt_context_get_mflags(cxt, &mflags) == 0 && mflags & MS_REMOUNT) isremount = 1; - } if (cxt->fs) { src = mnt_fs_get_source(cxt->fs); |