Skip to content

Commit

Permalink
coreos-boot-mount-generator: handle rd.multipath=0
Browse files Browse the repository at this point in the history
With the new `karg` helper, this is trivial to do now.
  • Loading branch information
jlebon committed Oct 21, 2021
1 parent e159c81 commit 5cfcea2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ EOF
# Otherwise, use the usual by-label symlink.
# See discussion in https://github.com/coreos/fedora-coreos-config/pull/1022
bootdev=/dev/disk/by-label/boot
# TODO add equivalent of getargbool() so we handle rd.multipath=0
if have_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 5cfcea2

Please sign in to comment.