diff options
Diffstat (limited to 'libmount/src/context.c')
-rw-r--r-- | libmount/src/context.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libmount/src/context.c b/libmount/src/context.c index 1620e9c8e..a320b3e6b 100644 --- a/libmount/src/context.c +++ b/libmount/src/context.c @@ -1993,6 +1993,9 @@ static int apply_table(struct libmnt_context *cxt, struct libmnt_table *tb, if (!rc && !mnt_fs_get_fstype(cxt->fs)) rc = mnt_fs_set_fstype(cxt->fs, mnt_fs_get_fstype(fs)); + if (!rc && !mnt_fs_get_root(cxt->fs) && mnt_fs_get_root(fs)) + rc = mnt_fs_set_root(cxt->fs, mnt_fs_get_root(fs)); + if (rc) return rc; |