diff options
Diffstat (limited to 'builder/build-initramfs.sh')
-rwxr-xr-x | builder/build-initramfs.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/builder/build-initramfs.sh b/builder/build-initramfs.sh index 7fac2186..2cb675a4 100755 --- a/builder/build-initramfs.sh +++ b/builder/build-initramfs.sh @@ -42,6 +42,12 @@ if ! [[ -d "$_needed_location" ]]; then git clone --depth 1 --branch "$branch" ' git submodule update # --remote <- this seems like a bad idea + # apply patches for submodules + git submodule foreach ' + for p in $(find ${toplevel}/builder/patches/${path##*/} -type f -name "*.patch" | sort -n); do + patch -p1 < $p || echo "Failed to patch $path with $p - expect errors." + done 2>/dev/null + ' popd # finally copy all dracut modules under modules.d/ cp --recursive \ |