On 16.10.2015 04:04, Zhiguo Deng wrote: > When using rd.zfcp= parameter in generic.prm file, wrong format > parameters will prevent the zfcp driver to add the correct SCSI > disk. dracut should die when a wrong rd.zfcp= parameter supplied. > > Signed-off-by: Zhiguo Deng <bjzgdeng@xxxxxxxxxxxxxxxxxx> > --- > modules.d/95zfcp/parse-zfcp.sh | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/modules.d/95zfcp/parse-zfcp.sh b/modules.d/95zfcp/parse-zfcp.sh > index 9b22d93..91d790b 100755 > --- a/modules.d/95zfcp/parse-zfcp.sh > +++ b/modules.d/95zfcp/parse-zfcp.sh > @@ -5,6 +5,8 @@ > getargbool 1 rd.zfcp.conf -d -n rd_NO_ZFCPCONF || rm /etc/zfcp.conf > > for zfcp_arg in $(getargs rd.zfcp -d 'rd_ZFCP='); do > + echo $zfcp_arg | grep '0\.[0-9a-fA-F]\.[0-9a-fA-F]\{4\},0x[0-9a-fA-F]\{16\},0x[0-9a-fA-F]\{16\}' >/dev/null > + test $? -ne 0 && die "For argument 'rd.zfcp=$zfcp_arg'\nSorry, invalid format." > ( > IFS="," > set $zfcp_arg > Thanks! Pushed. -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html