# $xenhopt==undef => is actually a guest, do not set up a hypervisor
my ($ho, $want_kernver, $want_xsm, $xenhopt, $distpath, $hooks) = @_;
- target_kernkind_check($ho);
- target_kernkind_console_inittab($ho,$ho,"/");
+ target_setup_rootdev_console_inittab($ho,$ho,"/");
my $kopt;
my $console= target_var($ho,'console');
host_get_free_memory
target_ping_check_down target_ping_check_up
- target_kernkind_check target_kernkind_console_inittab
+ target_setup_rootdev_console_inittab
target_var target_var_prefix
selectguest prepareguest more_prepareguest_hvm
guest_template
return undef;
}
-sub target_kernkind_check ($) {
- my ($gho) = @_;
+sub target_setup_rootdev_console_inittab ($$$) {
+ my ($ho, $gho, $root) = @_;
+
my $pfx= target_var_prefix($gho);
my $kernkind= $r{$pfx."kernkind"} // 'pvops';
my $isguest= exists $gho->{Guest};
} elsif ($kernkind !~ m/2618/) {
store_runvar($pfx."console", 'xvc0') if $isguest;
}
-}
-
-sub target_kernkind_console_inittab ($$$) {
- my ($ho, $gho, $root) = @_;
my $inittabpath= "$root/etc/inittab";
my $console= target_var($gho,'console');
savecfg();
ether();
access();
-target_kernkind_check($gho);
-$console = target_kernkind_console_inittab($ho,$gho,"$mountpoint");
+$console = target_setup_rootdev_console_inittab($ho,$gho,"$mountpoint");
debian_overlays($ho, \&overlay);
target_cmd_root($ho, <<END.debian_overlays_fixup_cmd($ho, $mountpoint));