diff --git a/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm b/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm index 81f6e8911..aed5b1976 100644 --- a/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm +++ b/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm @@ -117,7 +117,7 @@ sub get_package_names { } elsif (/^#NEW_INSTALL_LIST#/) { $pass++; next; - } elsif (/#ENV:([^#^\n]+)#/) { + } elsif (/^#ENV:([^#^\n]+)#/) { my $pa=$pkgnames{$pass}{ENVLIST}; my $env = $1; if (exists($pkgnames{$pass}{ENVLIST})){