mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-06 17:18:29 +03:00
c229e321da
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.) |
||
---|---|---|
.. | ||
64-lvm.rules | ||
module-setup.sh | ||
parse-lvm.sh | ||
pvscan-udev-initrd.sh |