]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix: proper return code for inst_multiple in dracut-init.sh
authorAndrew J. Hesford <ajh@sideband.org>
Thu, 18 Feb 2021 23:53:15 +0000 (18:53 -0500)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 19 Feb 2021 08:03:53 +0000 (09:03 +0100)
commitd437970c013e3287de263a1e60a117b15239896c
tree02db6a2ba7d97e0a7fa5ff227f7f2f29ab50558c
parentf8b38ecd7c241b6c65e672a1343afe29c6ab5779
fix: proper return code for inst_multiple in dracut-init.sh

A test of the form

    if ! command; then
        _ret=$?
        ...
        return _ret
    fi

does not capture the return code of `command`, but the negation of the
return code, leaving _ret == 0. The test of this form in inst_multiple
has been refactored to capture and return the right value.
dracut-init.sh