[arch-projects] [mkinitcpio][PATCH v2 1/2] functions: add_full_dir: recursive filter

2017-06-01 Thread Erik Stromdahl via arch-projects
By passing the filter glob in all recursive invocations of add_full_dir, the filtering is performed on all subdirs and not just the top dir. This makes the implementation correspond to the documented behavior in the man page. Signed-off-by: Erik Stromdahl --- functions | 2 +- 1 file changed, 1

[arch-projects] [mkinitcpio][PATCH v2 2/2] functions: add_full_dir: path prefix strip-off

2017-06-01 Thread Erik Stromdahl via arch-projects
Add third argument to add_full_dir: strip_prefix. The strip_prefix will be stripped off from the destination path (path in the initramfs image) when adding files. Rationale: Make it easier to add rootfs overlay hooks when generating images. add_full_dir can be invoked in this way: add_full_dir /