slackware-current/source/a/mkinitrd/0006-coreutils-9.1-ensure-target-dir-exists.patch
Patrick J Volkerding ee861a1726 Tue Apr 26 19:45:46 UTC 2022
a/mkinitrd-1.4.11-x86_64-29.txz:  Rebuilt.
  Support mounting additional partitions from the initrd - useful for anyone
  still stuck with a separated /usr. ;-) Thanks to PiterPunk.
  Ensure that the target directory exists before trying to copy a module into
  it (workaround for coreutils 9.1 behavior change).
ap/vim-8.2.4830-x86_64-1.txz:  Upgraded.
l/SDL2-2.0.22-x86_64-1.txz:  Upgraded.
l/elfutils-0.187-x86_64-1.txz:  Upgraded.
l/fluidsynth-2.2.7-x86_64-1.txz:  Upgraded.
n/gnupg2-2.2.35-x86_64-1.txz:  Upgraded.
xap/vim-gvim-8.2.4830-x86_64-1.txz:  Upgraded.
xap/xpdf-4.04-x86_64-1.txz:  Upgraded.
2022-04-27 06:59:51 +02:00

12 lines
547 B
Diff

--- ./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