stages/erofs: Add exclude_paths support
Add the ability to exclude files and directories from the erofs image. This uses the mkfs.erofs --exclude-regex feature, so simple matches or regexes can be used.
This commit is contained in:
parent
86c89a2421
commit
a828ef95d6
3 changed files with 13 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ TEST_INPUT = [
|
|||
({"options": ["dedupe"]}, ["-E", "dedupe"]),
|
||||
({"options": ["all-fragments", "force-inode-compact"]}, ["-E", "all-fragments,force-inode-compact"]),
|
||||
({"cluster-size": 131072, "options": ["dedupe"]}, ["-E", "dedupe", "-C", "131072"]),
|
||||
({"exclude_paths": ["boot/", "root/"]}, ["--exclude-regex", "boot/", "--exclude-regex", "root/"])
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue