diff options
author | Erik Stromdahl <erik.stromdahl@gmail.com> | 2017-06-01 19:29:18 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2017-08-20 22:40:27 +0200 |
commit | 172ca644527cfaf3bba1dbeab9e7139cca2b249a (patch) | |
tree | 043ff751d3e1d01abbceabcaff4f6b3b2d10a24d /hooks | |
parent | cee0499489e97384b72d47473606272d12ac96c0 (diff) | |
download | mkinitcpio-172ca644527cfaf3bba1dbeab9e7139cca2b249a.tar.gz mkinitcpio-172ca644527cfaf3bba1dbeab9e7139cca2b249a.tar.xz |
functions: add_full_dir: path prefix strip-off
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 /path/on/parent/rootfs-overlay * /path/on/parent/rootfs-overlay
The above invocation will add all content of */path/on/parent/rootfs-overlay*
into */* in the initramfs image.
Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
Diffstat (limited to 'hooks')
0 files changed, 0 insertions, 0 deletions