From 198d348727d81865333c7a524bcbfe4a45a8b8b3 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 21:56:16 +0100 Subject: [PATCH] added patch to fix path of dmsetup [release 040-5mamba;Sat Jan 17 2015] --- dracut-040-dmsetup_fix_path.patch | 12 ++++++++++++ dracut.spec | 9 +++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 dracut-040-dmsetup_fix_path.patch diff --git a/dracut-040-dmsetup_fix_path.patch b/dracut-040-dmsetup_fix_path.patch new file mode 100644 index 0000000..500f14e --- /dev/null +++ b/dracut-040-dmsetup_fix_path.patch @@ -0,0 +1,12 @@ +diff -Nru dracut-040.orig/modules.d/90dm/59-persistent-storage-dm.rules dracut-040/modules.d/90dm/59-persistent-storage-dm.rules +--- dracut-040.orig/modules.d/90dm/59-persistent-storage-dm.rules 2014-10-24 13:19:58.000000000 +0200 ++++ dracut-040/modules.d/90dm/59-persistent-storage-dm.rules 2015-01-17 17:50:32.157264737 +0100 +@@ -5,7 +5,7 @@ + + KERNEL!="dm-[0-9]*", GOTO="dm_end" + ACTION=="add", GOTO="dm_end" +-IMPORT{program}="/sbin/dmsetup info -c --nameprefixes --unquoted --rows --noheadings -o name,uuid,suspended,readonly,major,minor,open,tables_loaded,names_using_dev -j%M -m%m" ++IMPORT{program}="/usr/sbin/dmsetup info -c --nameprefixes --unquoted --rows --noheadings -o name,uuid,suspended,readonly,major,minor,open,tables_loaded,names_using_dev -j%M -m%m" + ENV{DM_NAME}!="?*", GOTO="dm_end" + ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", GOTO="dm_end" + ENV{DM_UUID}=="CRYPT-TEMP-?*", GOTO="dm_end" diff --git a/dracut.spec b/dracut.spec index b239b1d..9f2b35a 100644 --- a/dracut.spec +++ b/dracut.spec @@ -1,6 +1,6 @@ Name: dracut Version: 040 -Release: 4mamba +Release: 5mamba Summary: Generic, modular initramfs generation tool that can be used across various distributions Group: System/Kernel and Hardware Vendor: openmamba @@ -20,7 +20,8 @@ Patch16: dracut-032-nfs-var-statd-sm.patch Patch17: dracut-032-fix-libdirs.patch Patch18: dracut-040-fix-udevdir-detection.patch Patch19: dracut-040-no-gzip-rsyncable.patch -Patch20: dracut-040-fix-autofs4-ipv6-modules.patch +Patch20: dracut-040-fix-autofs4-ipv6-modules.patch +Patch21: dracut-040-dmsetup_fix_path.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -107,6 +108,7 @@ This package conatins extra optional modules for dracut. %patch18 -p1 %patch19 -p1 %patch20 -p1 +%patch21 -p1 chmod +x modules.d/99squash-live/* # remove *.orig files created by patched to prevent from being installed @@ -334,6 +336,9 @@ ln -s ../bin/mkinitrd %{buildroot}%{_sbindir}/mkinitrd #%doc NEWS README README.generic README.kernel README.modules TODO %changelog +* Sat Jan 17 2015 Silvan Calarco 040-5mamba +- added patch to fix path of dmsetup + * Sat Jan 10 2015 Silvan Calarco 040-4mamba - added patch to fix error loading autofs4 and ipv6 modules