Unverified Commit 6dd11b9f authored by Thermi's avatar Thermi

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 961726b6
...@@ -122,6 +122,7 @@ initfs_kmods() { ...@@ -122,6 +122,7 @@ initfs_kmods() {
for file in $(find_kmods); do for file in $(find_kmods); do
echo "${file#/}" echo "${file#/}"
done | sort -u | cpio --quiet -pdm "$tmpdir" || return 1 done | sort -u | cpio --quiet -pdm "$tmpdir" || return 1
mkdir -p "$tmpdir"/lib/modules/$kernel/
for file in modules.order modules.builtin; do for file in modules.order modules.builtin; do
if [ -f "$kerneldir"/$file ]; then if [ -f "$kerneldir"/$file ]; then
cp "$kerneldir"/$file "$tmpdir"/lib/modules/$kernel/ 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