1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-06 17:18:29 +03:00
lvm2/dracut
David Teigland c229e321da add dracut files
pvscan-udev-initrd.sh is shell wrapper around the
pvscan command for use in the initrd lvm udev rule.
It finds the intersection of complete VG/LVs reported
by pvscan, and the VG/LVs specified on boot cmdline.
The resulting VG or LVs are printed as env-vars that
the udev rule can IMPORT, and pass to vgchange/lvchange.

64-lvm.rules calls pvscan-udev-initrd.sh/pvscan to scan
the PV to check if any VG or LVs are complete given the
new device.  The pvscan will only ever read the single
device triggering the uevent.  If any VG or LVs are
complete, the udev rule uses systemd-run to run a
vgchange or lvchange command to activate the complete
VG or LVs.  (Running vgchange or lvchange directly may
take longer than udev likes, so systemd-run --no-block
is used.)
2021-07-14 12:52:22 -05:00
..
64-lvm.rules add dracut files 2021-07-14 12:52:22 -05:00
module-setup.sh add dracut files 2021-07-14 12:52:22 -05:00
parse-lvm.sh add dracut files 2021-07-14 12:52:22 -05:00
pvscan-udev-initrd.sh add dracut files 2021-07-14 12:52:22 -05:00