summaryrefslogtreecommitdiffstats
path: root/source/a/mkinitrd/0006-coreutils-9.1-ensure-target-dir-exists.patch
blob: 6eb0b2a44af4e2099d82eab3cb38a9ab347e53a3 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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