diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index fbe04eaba..5396aa31a 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -158,6 +158,9 @@ sub subvars { # append preseed directive lines while () { chomp $_; + if (/^\s*#.*/ ){ + next; + } $pkglist .= " " . $_; }