diff options
Diffstat (limited to 'mkfs/mkfs.c')
-rw-r--r-- | mkfs/mkfs.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c index 1fd95be..63b9c98 100644 --- a/mkfs/mkfs.c +++ b/mkfs/mkfs.c @@ -70,8 +70,18 @@ int main(int argc, char **argv) goto out_outfd; } - if (fstree_from_file(&info.fs, info.opt.infile)) - goto out_fstree; + switch (info.opt.mode) { + case PACK_FILE: + if (fstree_from_file(&info.fs, info.opt.infile)) + goto out_fstree; + break; + case PACK_DIR: + if (fstree_from_dir(&info.fs, info.opt.infile)) + goto out_fstree; + break; + default: + assert(0); + } #ifdef WITH_SELINUX if (info.opt.selinux != NULL) { |