From 5eb254b016f9d5dbb13bcbb923e2afe22f7819eb Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Tue, 9 Jul 2013 15:05:49 +0400 Subject: [PATCH] tmpfs: use the --one-file-system option for dumping tmpfs with help tar Actully for dumping tmpfs it should be remounted to somewhere else to avoid overmounts. Signed-off-by: Andrey Vagin Signed-off-by: Pavel Emelyanov --- mount.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mount.c b/mount.c index 74e7748f6..fbc9f7dc5 100644 --- a/mount.c +++ b/mount.c @@ -276,6 +276,7 @@ static int tmpfs_dump(struct mount_info *pm) ret = cr_system(-1, fd_img, -1, "tar", (char *[]) { "tar", "--create", "--gzip", + "--one-file-system", "--check-links", "--preserve-permissions", "--sparse",