@ISA = qw(Exporter);
@EXPORT = qw(kickstart_create_guest
kickstart_create
+ ks_installcmdline_core
);
%EXPORT_TAGS = ( );
.'-'.$ho->{RedhatRelease};
}
+sub ks_installcmdline_core ($$;@) {
+ my ($tho, $ks_url, %xopts) = @_;
+
+ my @cl= qw(debug);
+ if ($tho->{RedhatRelease} >= 7) {
+ push @cl, "inst.text";
+ push @cl, "inst.ks=$ks_url";
+
+ # FIXME: CentOS installer forward syslog only via TCP, osstest listen on UPD.
+ push @cl, "inst.syslog=$r{syslog_server}"
+ if ($r{syslog_server});
+ } else {
+ # CentOS 6
+ push @cl, qw(text ksdevice=bootif);
+ push @cl, "ks=$ks_url";
+ push @cl, "syslog=$r{syslog_server}"
+ if ($r{syslog_server});
+ }
+
+ return @cl;
+}
+
1;
is_host_redhat_derived
host_install_recipe_create
host_installer_path
+ host_installcmdline_core
);
%EXPORT_TAGS = ( );
}
}
+sub host_installcmdline_core ($) {
+ my ($ho) = @_;
+ if ($ho->{OS} eq "debian") {
+ return \&Osstest::Debian::di_installcmdline_core;
+ } elsif (is_host_redhat_derived($ho)) {
+ return \&Osstest::RedHat::ks_installcmdline_core;
+ } else {
+ die "Unknown OS $ho->{OS}";
+ }
+}
+
1;
my $d_i= host_installer_path($ho)->($ho);
my @dicmdline= qw(vga=normal);
- push @dicmdline, di_installcmdline_core($ho, $ps_url, %xopts);
+ push @dicmdline, host_installcmdline_core($ho)->($ho, $ps_url, %xopts);
my $src_initrd= "$d_i/initrd.gz";
my @initrds= "$ho->{Tftp}{Path}/$src_initrd";