diff --git a/xCAT/postscripts/ospkgs b/xCAT/postscripts/ospkgs index 0a8354d7e..bec1b22b7 100755 --- a/xCAT/postscripts/ospkgs +++ b/xCAT/postscripts/ospkgs @@ -115,6 +115,10 @@ pkgs_d='' #packages to remove OIFS=$IFS IFS=$(printf '\n') +if ( pmatch "$OSVER" "ubuntu*" ); then + IFS=$(printf '\n') +fi + for x in `echo "$OSPKGS" | tr "," "\n"` do #remove leading and trailing spaces