I may be missing something, but "defaults" is hardcoded at this moment?
[curtin/commands/block_meta.py]
631 if filesystem.get('fstype') != "swap":
632 # Figure out what point should be
633 while len(path) > 0 and path[0] == "/":
634 path = path[1:]
635 mount_point = os.path.sep.join([state['target'], path])
636 mount_point = os.path.normpath(mount_point)
637
638 # Create mount point if does not exist
639 util.ensure_dir(mount_point)
640
641 # Mount volume
642 util.subp(['mount', volume_path, mount_point])
643
644 path = "/%s" % path
645
646 options = ["defaults"]
647 # If the volume_path's kname is backed by iSCSI or (in the case of
648 # LVM/DM) if any of its slaves are backed by iSCSI, then we need to
649 # append _netdev to the fstab line
650 if iscsi.volpath_is_iscsi(volume_path):
651 LOG.debug("Marking volume_path:%s as '_netdev'", volume_path)
652 options.append("_netdev")
I may be missing something, but "defaults" is hardcoded at this moment?
[curtin/ commands/ block_meta. py] get('fstype' ) != "swap": sep.join( [state[ 'target' ], path]) normpath( mount_point) dir(mount_ point) is_iscsi( volume_ path): append( "_netdev" )
631 if filesystem.
632 # Figure out what point should be
633 while len(path) > 0 and path[0] == "/":
634 path = path[1:]
635 mount_point = os.path.
636 mount_point = os.path.
637
638 # Create mount point if does not exist
639 util.ensure_
640
641 # Mount volume
642 util.subp(['mount', volume_path, mount_point])
643
644 path = "/%s" % path
645
646 options = ["defaults"]
647 # If the volume_path's kname is backed by iSCSI or (in the case of
648 # LVM/DM) if any of its slaves are backed by iSCSI, then we need to
649 # append _netdev to the fstab line
650 if iscsi.volpath_
651 LOG.debug("Marking volume_path:%s as '_netdev'", volume_path)
652 options.