home: hub: mkinitfs

Download patch

ref: 0e07943c9e6724528959e353a16e23f96f03f484
parent: cd22dcd0f57b74cde8dd9bcc8f6cc2ed869e2bb1
author: Noel Kuntze <noel@familie-kuntze.de>
date: Fri Jan 24 16:39:50 CST 2020

Run mkdir -p before copying the kernel modules. Makes sure the dirs exist before calling cp on them.

--- a/mkinitfs.in
+++ b/mkinitfs.in
@@ -123,6 +123,7 @@
 		echo "${file#/}"
 	# DO NOT return with 1 if there are no custom modules for initramfs
 	done | sort -u | cpio --quiet -pdm "$tmpdir"
+	mkdir -p "$tmpdir"/lib/modules/$kernel/
 	for file in modules.order modules.builtin; do
 		if [ -f "$kerneldir"/$file ]; then
 			cp "$kerneldir"/$file "$tmpdir"/lib/modules/$kernel/