diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index 66e72b835..c91742f7c 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -1576,6 +1576,11 @@ sub includefile } chomp($text); + if (($pkglist == 2) && (length($text)) < 1) { + # If processing a "pattern" (pkglist==2), and no patterns + # were listed in pkglist file, just return start and end tags + $text="$pkgb$pkge" + } return ($text); } diff --git a/xCAT-server/share/xcat/install/sles/compute.sle15.tmpl b/xCAT-server/share/xcat/install/sles/compute.sle15.tmpl index cb70be65f..1ae096fc8 100644 --- a/xCAT-server/share/xcat/install/sles/compute.sle15.tmpl +++ b/xCAT-server/share/xcat/install/sles/compute.sle15.tmpl @@ -1,33 +1,16 @@ - + - - true - true - - false - false - mbr + + true + - - UTC - #TABLE:site:key=timezone:value# - - - english-us - - en_US false - false - false - true + true - - non - true true @@ -35,6 +18,16 @@ true + + UTC + #TABLE:site:key=timezone:value# + + + english-us + + + en_US + @@ -46,22 +39,20 @@ - #INSTALL_SOURCES# + #INSTALL_SOURCES# - SLES + SLES #INCLUDE_DEFAULT_PTRNLIST_S# - #INCLUDE_DEFAULT_PKGLIST_S# + #INCLUDE_DEFAULT_PKGLIST_S# - - root @@ -72,10 +63,8 @@ - + true - true - local linux @@ -86,8 +75,7 @@ - false - + false @@ -95,5 +83,4 @@ #INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/chroot.sles# #INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.sle# -