summaryrefslogtreecommitdiffstats
path: root/source/a/mkinitrd/0006-coreutils-9.1-ensure-target-dir-exists.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/mkinitrd/0006-coreutils-9.1-ensure-target-dir-exists.patch')
-rw-r--r--source/a/mkinitrd/0006-coreutils-9.1-ensure-target-dir-exists.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/a/mkinitrd/0006-coreutils-9.1-ensure-target-dir-exists.patch b/source/a/mkinitrd/0006-coreutils-9.1-ensure-target-dir-exists.patch
new file mode 100644
index 000000000..6eb0b2a44
--- /dev/null
+++ b/source/a/mkinitrd/0006-coreutils-9.1-ensure-target-dir-exists.patch
@@ -0,0 +1,12 @@
+--- ./mkinitrd.orig 2022-01-26 14:33:29.000000000 -0600
++++ ./mkinitrd 2022-04-26 13:55:17.511004239 -0500
+@@ -778,6 +778,9 @@
+ echo "$LINE" >> $SOURCE_TREE/load_kernel_modules
+ fi
+
++ # Ensure that the destination directory for the module exists:
++ mkdir -p "$(dirname $SOURCE_TREE/$SRCMOD)"
++
+ # Try to add the module to the initrd-tree. This should be done
+ # even if it exists there already as we may have changed compilers
+ # or otherwise caused the modules in the initrd-tree to need