File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ parse_nvmf_discover() {
62
62
warn " traddr is mandatory for $trtype "
63
63
return 0
64
64
fi
65
- if [ " $trtype " = " fc" ]; then
65
+ if [ " $trtype " = " tcp" ]; then
66
+ : > /tmp/nvmf_needs_network
67
+ elif [ " $trtype " = " fc" ]; then
66
68
if [ " $traddr " = " auto" ]; then
67
69
rm /etc/nvme/discovery.conf
68
70
return 1
@@ -71,7 +73,7 @@ parse_nvmf_discover() {
71
73
warn " host traddr is mandatory for fc"
72
74
return 0
73
75
fi
74
- elif [ " $trtype " != " rdma" ] && [ " $trtype " != " tcp " ] ; then
76
+ elif [ " $trtype " != " rdma" ]; then
75
77
warn " unsupported transport $trtype "
76
78
return 0
77
79
fi
@@ -100,6 +102,11 @@ for d in $(getargs rd.nvmf.discover -d nvmf.discover=); do
100
102
}
101
103
done
102
104
105
+ if [ -e /tmp/nvmf_needs_network ]; then
106
+ echo " rd.neednet=1" > /etc/cmdline.d/nvmf-neednet.conf
107
+ rm -f /tmp/nvmf_needs_network
108
+ fi
109
+
103
110
# Host NQN and host id are mandatory for NVMe-oF
104
111
if [ -f " /etc/nvme/hostnqn" ] && [ -f " /etc/nvme/hostid" ]; then
105
112
You can’t perform that action at this time.
0 commit comments