]> git.ipfire.org Git - thirdparty/dracut.git/commit
feat(lvm): only run lvchange for LV that is seen on devices
authorDavid Teigland <teigland@redhat.com>
Fri, 10 Dec 2021 18:51:26 +0000 (12:51 -0600)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Wed, 2 Feb 2022 22:48:13 +0000 (22:48 +0000)
commit1af46743195422aaebcde5c508a5dd479eff51ea
treea1aabf7a4faa38ed768f70797bf2c7bc1e456c3f
parent7ffc5e388bcce20785803825bdd260c3c854b34f
feat(lvm): only run lvchange for LV that is seen on devices

Change the command listing LVs from lvscan to lvs, and list
only the LV names that are being activated.  Before attempting
to activate an LV, check that that LV name appears in the
lvs command output.  This avoids wasting time running an
lvchange command that we know will fail.
modules.d/90lvm/lvm_scan.sh