From b6cdc5e9bd5348d39709ff1aea0d9d760643d1ef Mon Sep 17 00:00:00 2001 From: Tycho Andersen Date: Thu, 5 Nov 2015 22:46:34 -0700 Subject: [PATCH] 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: Tycho Andersen Signed-off-by: Pavel Emelyanov --- mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mount.c b/mount.c index 9eb7dc8cf..102d1291d 100644 --- a/mount.c +++ b/mount.c @@ -1592,7 +1592,7 @@ static int dump_one_mountpoint(struct mount_info *pm, struct cr_img *img) if (me.fstype == FSTYPE__AUTO) 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)) { struct mount_info *t;