Skip to content

Commit

Permalink
fix(lvm): drop dm-eventd binary and libs from initramfs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
smoser authored and johannbg committed Dec 21, 2022
1 parent 5b92eeb commit 7d3184e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 0 additions & 3 deletions modules.d/90dm/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions modules.d/90lvm/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions test/TEST-17-LVM-THIN/create-root.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d3184e

Please sign in to comment.