/usr/lib/dracut/modules.d/95lunmask
NameSizeModeActions
fc_transport_scan_lun.sh5620755editdlrm
module-setup.sh22540755editdlrm
parse-lunmask.sh12270755editdlrm
sas_transport_scan_lun.sh5680755editdlrm
Edit: /usr/lib/dracut/modules.d/95lunmask/parse-lunmask.sh (1227B)
#!/bin/sh # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- # ex: ts=8 sw=4 sts=4 et filetype=sh create_udev_rule() { local transport=$1 local tgtid=$2 local lun=$3 local _rule=/etc/udev/rules.d/51-${transport}-lunmask-${tgtid}.rules local _cu_type _dev_type [ -e ${_rule} ] && return 0 if [ ! -f "$_rule" ] ; then if [ "$transport" = "fc" ] ; then cat > $_rule < $_rule < /sys/module/scsi_mod/parameters/scan elif [ ! -f /etc/modprobe.d/95lunmask.conf ] ; then echo "options scsi_mod scan=manual" > /etc/modprobe.d/95lunmask.conf fi create_udev_rule $1 $2 $3 ) done