Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install zfs #240

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion templates.fif.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"WORKER_CLASS": "qemu_ppc64le"
}
},
"uefx": {
"64bit": {
"backend": "qemu",
"settings": {
"ARCH_BASE_MACHINE": "64bit",
Expand All @@ -88,6 +88,8 @@
"backend": "qemu",
"settings": {
"ARCH_BASE_MACHINE": "64bit",
"INSECURE_PFLASH_CODE": "/usr/share/edk2/ovmf/OVMF_CODE.fd",
"INSECURE_PFLASH_VARS": "/usr/share/edk2/ovmf/OVMF_VARS.fd",
"PART_TABLE_TYPE": "gpt",
"QEMUCPU": "Nehalem",
"QEMUCPUS": "2",
Expand Down Expand Up @@ -464,6 +466,10 @@
"machine": "bios",
"product": "rocky-universal-x86_64-*"
},
"rocky-universal-x86_64-*-64bit": {
"machine": "64bit",
"product": "rocky-universal-x86_64-*"
},
"rocky-universal-x86_64-*-uefi": {
"machine": "uefi",
"product": "rocky-universal-x86_64-*"
Expand Down Expand Up @@ -1403,6 +1409,20 @@
"DESKTOP": "false"
}
},
"install_zfs": {
"profiles": {
"rocky-universal-x86_64-*-64bit": 40
},
"settings": {
"NUMDISKS": "3",
"PARTITIONING": "custom_xfs",
"POSTINSTALL": "disk_custom_zfs_install",
"ROOT_PASSWORD": "weakpassword",
"PACKAGE_SET": "minimal",
"STORE_HDD_1": "disk_%MACHINE%_zfs.qcow2",
"DESKTOP": "false"
}
},
"memtest": {
"profiles": {
"rocky-universal-s390x-*-s390x": 30,
Expand Down
36 changes: 36 additions & 0 deletions tests/disk_custom_zfs_install.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
use base "installedtest";
use strict;
use testapi;
use utils;

sub run {
assert_screen "root_console";
assert_script_run "dnf config-manager --set-enabled crb",300;
assert_script_run "dnf update --refresh -y",720;
type_safely "reboot\n";
boot_to_login_screen;
# This time, need to login manually.
console_login(user => "root", password => get_var("ROOT_PASSWORD"));
sleep 2;
assert_screen "root_console";
assert_script_run "dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm",300;
# OpenZFS repo config
assert_script_run "dnf install -y https://zfsonlinux.org/epel/zfs-release-2-3.el9.noarch.rpm",300;
# zfs cli utilities
# For test version, use --enablerepo=zfs-testing
assert_script_run "dnf install -y zfs",720;
script_run 'mokutil --sb-state';
script_run "modprobe zfs";
assert_script_run "lsmod | grep zfs";
assert_script_run "zpool create zfs /dev/vdb /dev/vdc";
assert_script_run "zpool list";
assert_script_run "zpool status";
}

sub test_flags {
return {fatal => 1};
}

1;

# vim: set sw=4 et: