def multipath_assert_supported():
""" Determine if the runtime system supports multipath.
returns: True if system supports multipath
raises: RuntimeError: if system does not support multipath
"""
missing_progs = [p for p in ('multipath', 'multipathd') if not util.which(p)]
if missing_progs:
raise RuntimeError( "Missing multipath utils: %s" % ','.join(missing_progs))
that's apparently not good enough, if multipath is disabled via kernel command line.
curtin has:
def multipath_ assert_ supported( ):
if not util.which(p)]
"Missing multipath utils: %s" % ','.join( missing_ progs))
""" Determine if the runtime system supports multipath.
returns: True if system supports multipath
raises: RuntimeError: if system does not support multipath
"""
missing_progs = [p for p in ('multipath', 'multipathd')
if missing_progs:
raise RuntimeError(
that's apparently not good enough, if multipath is disabled via kernel command line.