diff --git a/xCAT-server/lib/xcat/plugins/pxe.pm b/xCAT-server/lib/xcat/plugins/pxe.pm index dab9cbe81..4b586f984 100644 --- a/xCAT-server/lib/xcat/plugins/pxe.pm +++ b/xCAT-server/lib/xcat/plugins/pxe.pm @@ -119,9 +119,10 @@ sub setstate { $cmdhashref = xCAT::Utils->splitkcmdline($kcmdlinehack); } - if ($cmdhashref and $cmdhashref->{volatile}) - { - $kcmdlinehack = $cmdhashref->{volatile}; + if ($cmdhashref) { + # Use only volatile options for netboot; persistent (R::) options + # are handled separately for the installed OS via PERSKCMDLINE + $kcmdlinehack = $cmdhashref->{volatile} // ""; } diff --git a/xCAT-server/lib/xcat/plugins/xnba.pm b/xCAT-server/lib/xcat/plugins/xnba.pm index c59e6a2f4..88c09c5e6 100644 --- a/xCAT-server/lib/xcat/plugins/xnba.pm +++ b/xCAT-server/lib/xcat/plugins/xnba.pm @@ -186,9 +186,10 @@ sub setstate { $cmdhashref = xCAT::Utils->splitkcmdline($kcmdlinehack); } - if ($cmdhashref and $cmdhashref->{volatile}) - { - $kcmdlinehack = $cmdhashref->{volatile}; + if ($cmdhashref) { + # Use only volatile options for netboot; persistent (R::) options + # are handled separately for the installed OS via PERSKCMDLINE + $kcmdlinehack = $cmdhashref->{volatile} // ""; }