]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(lvm): drop dm-eventd binary and libs from initramfs
authorScott Moser <smoser@brickies.net>
Fri, 28 Oct 2022 13:31:33 +0000 (09:31 -0400)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Wed, 21 Dec 2022 12:44:50 +0000 (12:44 +0000)
Per David Teigland:

 > dmeventd is not meant to be run in the initrd. When it's started
 > later, it will monitor LVs activated by the initrd if needed.

So, lets git rid of the dmeventd binary and the libraries that were
being added for it.

modules.d/90dm/module-setup.sh
modules.d/90lvm/module-setup.sh
test/TEST-17-LVM-THIN/create-root.sh

index 59467edf79d223e191a86e483c9d2063616fc291..c7bf762d5cee1be91b96fe07126cf2786f25f295 100755 (executable)
@@ -22,9 +22,6 @@ install() {
         && inst_hook pre-udev 30 "$moddir/dm-pre-udev.sh"
 
     inst_multiple dmsetup
-    inst_multiple -o dmeventd
-
-    inst_libdir_file "libdevmapper-event.so*"
 
     inst_rules 10-dm.rules 13-dm-disk.rules 95-dm-notify.rules
     # Gentoo ebuild for LVM2 prior to 2.02.63-r1 doesn't install above rules
index aa8c6db81f593ae7411fd7d8d2da1a37548fa70c..7622e4b479be4f49d903cc7a9908ce3ddc09ceb6 100755 (executable)
@@ -89,8 +89,6 @@ install() {
     inst_script "$moddir/lvm_scan.sh" /sbin/lvm_scan
     inst_hook cmdline 30 "$moddir/parse-lvm.sh"
 
-    inst_libdir_file "libdevmapper-event-lvm*.so"
-
     if [[ $hostonly ]] && find_binary lvs &> /dev/null; then
         for dev in "${!host_fs_types[@]}"; do
             [[ -e /sys/block/${dev#/dev/}/dm/name ]] || continue
index 576348cf2d0a8696c25c42ad5774cee589853f50..30bfbe222490d3c32bacdd95f28d46d9d18c165a 100755 (executable)
@@ -16,9 +16,9 @@ for dev in /dev/disk/by-id/ata-disk_disk[123]; do
 done
 
 lvm vgcreate dracut /dev/disk/by-id/ata-disk_disk[123]
-lvm lvcreate -l 17 -T dracut/mythinpool
-lvm lvcreate -V1G -T dracut/mythinpool -n root
-lvm vgchange -ay
+lvm lvcreate --ignoremonitoring -l 17 -T dracut/mythinpool
+lvm lvcreate --ignoremonitoring -V1G -T dracut/mythinpool -n root
+lvm vgchange --ignoremonitoring -ay
 mke2fs /dev/dracut/root
 mkdir -p /sysroot
 mount /dev/dracut/root /sysroot