Commit b6cdc5e9 authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

mnt: don't dump external mounts

These are going to be bind mounted from the outside world after all, so
there is no use in dumping them.
Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent b6a355c3
...@@ -1592,7 +1592,7 @@ static int dump_one_mountpoint(struct mount_info *pm, struct cr_img *img) ...@@ -1592,7 +1592,7 @@ static int dump_one_mountpoint(struct mount_info *pm, struct cr_img *img)
if (me.fstype == FSTYPE__AUTO) if (me.fstype == FSTYPE__AUTO)
me.fsname = pm->fstype->name; me.fsname = pm->fstype->name;
if (pm->parent && !pm->dumped && !pm->need_plugin && if (pm->parent && !pm->dumped && !pm->need_plugin && !pm->external &&
pm->fstype->dump && fsroot_mounted(pm)) { pm->fstype->dump && fsroot_mounted(pm)) {
struct mount_info *t; struct mount_info *t;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment