]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2scrub: check to make sure lvm2 is installed
authorTheodore Ts'o <tytso@mit.edu>
Sun, 10 Mar 2019 23:41:11 +0000 (19:41 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 10 Mar 2019 23:52:25 +0000 (19:52 -0400)
commit04738f2ff3b8a2acaf2de09856e07601817350b5
treed4380bb39a989e36a4b98325b89aef050c45aa96
parent2fe97b2bd04e18c3fb6dfa7a1801198b32c4437e
e2scrub: check to make sure lvm2 is installed

Not all systems will have the lvm2 package installed, so check for
that.  Pretty much all systems should have util-linux installed, but
check for that as well.

Of course, if lvm2 is installed we shouldn't find any LVM devices ---
but eventually the Demon Murphy will find a way to make it happen. :-)

Also, set the PATH so we don't have to worry about the script failing
due to /sbin not being in the path.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
scrub/e2scrub.in
scrub/e2scrub_all.in