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:
Brian C. Lane 2025-06-05 14:30:38 -07:00 committed by Achilleas Koutsou
parent 86c89a2421
commit a828ef95d6
3 changed files with 13 additions and 0 deletions

View file

@ -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/"])
]