Skip to content

Commit

Permalink
boot.mount: don't use mpath path if rd.multipath=0
Browse files Browse the repository at this point in the history
We have a `karg` utility function already in scope we can use for this.
  • Loading branch information
jlebon committed Oct 1, 2021
1 parent a43b2cb commit 999be5b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ if [ ! -f "/sysroot/${mntfile}" ]; then
# that creates "label found on mpath" links.
# Otherwise, use the usual by-label symlink.
# See discussion in https://github.com/coreos/fedora-coreos-config/pull/1022
# TODO add equivalent of getargbool() so we handle rd.multipath=0
if [ -n "$(karg rd.multipath)" ]; then
mpath=$(karg rd.multipath)
if [ -n "${mpath}" ] && [ "${mpath}" != 0 ]; then
bootdev=/dev/disk/by-label/dm-mpath-boot
fi

Expand Down

0 comments on commit 999be5b

Please sign in to comment.