mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2026-05-31 04:35:59 +00:00
Whoops. We only put this in _do_install_and_reboot, which is not hit for CoreOS installs, so the CoreOS USB install test never worked. It always boots back to the USB stick. Signed-off-by: Adam Williamson <awilliam@redhat.com>
32 lines
857 B
Perl
32 lines
857 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
assert_screen "user_console", 300;
|
|
type_string "sudo su\n";
|
|
assert_script_run "coreos-installer install /dev/vda --ignition-url https://www.happyassassin.net/temp/openqa.ign", 600;
|
|
# the CoreOS installer does not write an efibootmgr entry, so to
|
|
# ensure we boot from hard disk on next boot, wipe the entry for
|
|
# the optical drive
|
|
assert_script_run('efibootmgr -b $(efibootmgr | grep CD-ROM | head -1 | cut -f1 | sed -e "s,[^0-9],,g") -B') if (get_var("UEFI"));
|
|
# for USB install, disconnect the USB stick and reboot via ACPI
|
|
if (get_var('USBBOOT')) {
|
|
disconnect_usb;
|
|
power 'reset';
|
|
}
|
|
else {
|
|
type_string "reboot\n";
|
|
}
|
|
}
|
|
|
|
sub test_flags {
|
|
return {fatal => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|