]> git.ipfire.org Git - thirdparty/dracut.git/commit
dracut-functions.sh: Fix check_block_and_slaves_all
authorKairui Song <kasong@redhat.com>
Tue, 13 Oct 2020 08:17:11 +0000 (16:17 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 30 Oct 2020 09:13:37 +0000 (10:13 +0100)
commitab17cb851579476dc355aa7e812aacfd82d82aeb
tree3240ee798552024f93d26b74f65461d7375c20f8
parentc69961b403c1c83bb4717e1df1470e71cd0245d1
dracut-functions.sh: Fix check_block_and_slaves_all

check_block_and_slaves_all $func $dev should return 0, if $func return 0
for any checked device. Currently if any device don't have any sub
device, 1 is returned instead.

So remove the sub device checking statement. Also remove the same
statement in check_block_and_slaves, the "[[ -f $_x/dev ]]" in the for
loop is enought to ensure sub device exists.

Signed-off-by: Kairui Song <kasong@redhat.com>
dracut-functions.sh