Skip to content

Exclude file formats and paths #227

Closed Answered by mhx
Retengart asked this question in Q&A
Jul 20, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I read documentation for mkdwarfs, but a feeling tells me that I have not found a way to exclude certain types of files (or paths) from the source directory while creating dwarfs image. Any ideas?

This should be doable using filter rules. Did you see this when browsing the mkdwarfs docs? Did you see the Filter options section in the help output?

$ mkdwarfs -H
[...]
Filter options:
  -F [ --filter ] arg                   add filter rule
  --debug-filter [=arg(=all)]           show effect of filter rules without 
                                        producing an image (all, excluded, 
                                        excluded-files, files, included, 
                            …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Retengart
Comment options

Answer selected by Retengart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants