Commit 0e07943c authored by Thermi's avatar Thermi Committed by Natanael Copa
Browse files

Run mkdir -p before copying the kernel modules. Makes sure the dirs exist...

Run mkdir -p before copying the kernel modules. Makes sure the dirs exist before calling cp on them.
parent cd22dcd0
......@@ -123,6 +123,7 @@ initfs_kmods() {
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/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment