]> git.ipfire.org Git - thirdparty/dracut.git/commit
dracut-functions.sh:check_vol_slaves() speedup LV -> VG name
authorHarald Hoyer <harald@redhat.com>
Mon, 15 Jan 2018 14:44:46 +0000 (15:44 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 15 Jan 2018 14:47:17 +0000 (15:47 +0100)
commit9ed6eb741f0bc0178167e7063751eb2bb4ac6de5
treec0b58b47b9456b456c5c7ab2561487b5b908b489
parentb925f7f5d97259dd81e9d562fd1c6433e4b04f30
dracut-functions.sh:check_vol_slaves() speedup LV -> VG name

Instead of trying all /dev/mapper/* devices to match the maj:min, and
get the VG name with "lvm lvs", use the dm/name from /sys and dmsetup
splitname.

This should speedup execution with lots of LVs.
dracut-functions.sh