aboutsummaryrefslogtreecommitdiff
path: root/mkfs/mkfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'mkfs/mkfs.c')
-rw-r--r--mkfs/mkfs.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c
index ae6210b..d028a9d 100644
--- a/mkfs/mkfs.c
+++ b/mkfs/mkfs.c
@@ -72,6 +72,15 @@ int main(int argc, char **argv)
if (fstree_from_file(&info.fs, info.opt.infile))
goto out_fstree;
+#ifdef WITH_SELINUX
+ if (info.opt.selinux != NULL) {
+ if (fstree_relabel_selinux(&info.fs, info.opt.selinux))
+ goto out_fstree;
+ }
+#endif
+
+ fstree_xattr_deduplicate(&info.fs);
+
fstree_sort(&info.fs);
info.cmp = compressor_create(info.super.compression_id, true,