support pkglist for ubuntu full install
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13798 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
4f638c093b
commit
40837eb2ed
@ -126,17 +126,14 @@ sub subvars {
|
||||
# handle empty and non-empty $pkglistfile's
|
||||
|
||||
if (open PKGLISTFILE, "<$pkglistfile") {
|
||||
my $pkglist = <PKGLISTFILE>;
|
||||
chomp $pkglist;
|
||||
|
||||
# substitute space-delimited package list
|
||||
$inc =~ s/#INCLUDE_DEFAULT_PKGLIST_PRESEED#/$pkglist/g;
|
||||
|
||||
my $pkglist = '';
|
||||
# append preseed directive lines
|
||||
while (<PKGLISTFILE>) {
|
||||
$inc .= $_;
|
||||
chomp $_;
|
||||
$pkglist .= " " . $_;
|
||||
}
|
||||
|
||||
$inc =~ s/#INCLUDE_DEFAULT_PKGLIST_PRESEED#/$pkglist/g;
|
||||
close PKGLISTFILE;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user