summaryrefslogtreecommitdiff
path: root/mkfs/mkfs.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-11 00:44:05 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-11 00:45:34 +0200
commitb54d026f982a9f6c62d3276908a3fbc3cc628a9d (patch)
tree922c28b4aa43f0248ccce7f092943e1ab30227e4 /mkfs/mkfs.c
parenteb01ccca21a9a2e1693b28871f65934e8931e3bf (diff)
Add --one-file-system option to gensquashfs
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'mkfs/mkfs.c')
-rw-r--r--mkfs/mkfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c
index 8b8ecc3..f0d1e73 100644
--- a/mkfs/mkfs.c
+++ b/mkfs/mkfs.c
@@ -78,6 +78,9 @@ static int read_fstree(fstree_t *fs, options_t *opt)
if (opt->keep_time)
flags |= DIR_SCAN_KEEP_TIME;
+ if (opt->one_filesystem)
+ flags |= DIR_SCAN_ONE_FILESYSTEM;
+
return fstree_from_dir(fs, opt->packdir, flags);
}