2020-08-19 21:58:02 +00:00
|
|
|
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;
|
2024-03-19 23:52:00 +00:00
|
|
|
# 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"));
|
2020-08-19 21:58:02 +00:00
|
|
|
type_string "reboot\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
2022-07-28 20:32:57 +00:00
|
|
|
return {fatal => 1};
|
2020-08-19 21:58:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|