Skip to content

feature: update and simplify kickstarts - #22

Open
tcooper wants to merge 7 commits into
rocky-linux:rockyfrom
tcooper:rocky
Open

feature: update and simplify kickstarts#22
tcooper wants to merge 7 commits into
rocky-linux:rockyfrom
tcooper:rocky

Conversation

@tcooper

@tcooper tcooper commented Apr 28, 2026

Copy link
Copy Markdown
Member

This PR updates createhdds as follows...

  • adds support for Rocky Linux 10,
  • simplifies kickstarts to use $releasever and $basearch variables in the repository URLs,
  • where required addition repositories are added to the kickstart to provide access to packages and/or environment groups not found or defined in BaseOS repository,
  • minor updates to createhdds.py brought in from upstream.

All images have been regenerated to verify kickstarts...

Typical build sequence

openqa-dev:~/createhdds$ ./createhdds.py -l info -t minimal
libvirt: QEMU Driver error : Domain not found: no domain with matching name 'createhdds'

Starting install...
Retrieving 'vmlinuz'                                        |  10 MB  00:00
Retrieving 'initrd.img'                                     |  87 MB  00:20
Allocating 'disk_rocky8_minimal_x86_64.qcow2.tmp'           |  15 GB  00:00
Creating domain...                                          |         00:00
Running text console command: virsh --connect qemu:///session console createhdds
Connected to domain 'createhdds'
Escape character is ^] (Ctrl + ])
OVMF: Secure boot image verification failed.  Consider using the '-shim'
OVMF: command line switch for qemu (available in version 10.0 + newer).

OVMF: Using legacy linux kernel loader (insecure and deprecated).

EFI stub: UEFI Secure Boot is enabled.
[    0.000000] Linux version 4.18.0-553.el8_10.x86_64 (mockbuild@iad1-prod-build001.bld.equ.rockylinux.org) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-22) (GCC)) #1 SMP Fri May 24 13:05:10 UTC 2024
[    0.000000] Command line: inst.ks=file:/minimal.ks console=ttyS0 inst.repo=https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os

...<snip>...

Starting installer, one moment...
anaconda 33.16.10.5-1.el8.rocky.0.1 for Rocky Linux 8.10 started.
 * installation log files are stored in /tmp during the installation
 * shell is available on TTY2
 * if the graphical installation interface fails to start, try again with the
   inst.text bootoption to start text installation
 * when reporting a bug add logs from /tmp as separate text/plain attachments
21:30:00 Not asking for VNC because of an automated install
21:30:00 Not asking for VNC because text mode was explicitly asked for in kickstart
Starting automated install.Saving storage configuration...
Checking storage configuration...

...<snip>...

Progress
.
Setting up the installation environment
Setting up com_redhat_kdump addon
Setting up org_fedora_oscap addon
..
Configuring storage
Creating disklabel on /dev/vda
Creating xfs on /dev/vda2
Creating lvmpv on /dev/vda3
Creating swap on /dev/mapper/rl-swap
Creating xfs on /dev/mapper/rl-root
Creating efi on /dev/vda1
...
Running pre-installation scripts
.
Running pre-installation tasks
...
Installing.
Starting package installation process
Downloading packages
Downloading 364 RPMs, 6.67 MiB / 968.95 MiB (0%) done.
Downloading 364 RPMs, 15.22 MiB / 968.95 MiB (1%) done.
Downloading 364 RPMs, 24.97 MiB / 968.95 MiB (2%) done.
Downloading 364 RPMs, 34.18 MiB / 968.95 MiB (3%) done.

...<snip>...

Downloading 364 RPMs, 920.83 MiB / 968.95 MiB (95%) done.
Downloading 364 RPMs, 943.83 MiB / 968.95 MiB (97%) done.
Downloading 364 RPMs, 962.83 MiB / 968.95 MiB (99%) done.
Preparing transaction from installation source
Installing libgcc.x86_64 (1/364)
Installing tzdata.noarch (2/364)
Installing python3-setuptools-wheel.noarch (3/364)

...<snip>...

Configuring systemd.x86_64
Configuring systemd.x86_64
Configuring systemd-udev.x86_64
Configuring systemd-udev.x86_64
Configuring man-db.x86_64
Verifying NetworkManager.x86_64 (1/364)
Verifying NetworkManager-libnm.x86_64 (2/364)
Verifying NetworkManager-team.x86_64 (3/364)
Verifying NetworkManager-tui.x86_64 (4/364)

...<snip>...

[  OK  ] Stopped Device-Mapper Multipath Device Controller.
[  OK  ] Reached target Shutdown.
[  OK  ] Reached target Final Step.
[  OK  ] Started Power-Off.
[  OK  ] Reached target Power-Off.
dracut Warning: Killing all remaining processes
Powering off.
[  400.010522] reboot: Power down

Domain has shutdown. Continuing.
Domain creation completed.

verify all images built

openqa-dev:~/createhdds$ ./createhdds.py -l info -t check

openqa-dev:~/createhdds$ ls *.img
disk_freespace_gpt.img  disk_full_gpt.img  disk_ks-10.img  disk_ks-9.img         disk_shrink_ntfs.img
disk_freespace_mbr.img  disk_full_mbr.img  disk_ks-8.img   disk_shrink_ext4.img  disk_updates_img.img

openqa-dev:~/createhdds$ ls *.qcow2
disk_rocky10_desktopencrypt_x86_64.qcow2  disk_rocky8_desktopencrypt_x86_64.qcow2  disk_rocky9_desktopencrypt_x86_64.qcow2
disk_rocky10_desktop_x86_64.qcow2         disk_rocky8_desktop_x86_64.qcow2         disk_rocky9_desktop_x86_64.qcow2
disk_rocky10_minimal-bios_x86_64.qcow2    disk_rocky8_minimal-bios_x86_64.qcow2    disk_rocky9_minimal-bios_x86_64.qcow2
disk_rocky10_minimal_x86_64.qcow2         disk_rocky8_minimal_x86_64.qcow2         disk_rocky9_minimal_x86_64.qcow2
disk_rocky10_server_x86_64.qcow2          disk_rocky8_server_x86_64.qcow2          disk_rocky9_server_x86_64.qcow2
disk_rocky10_support_x86_64.qcow2         disk_rocky8_support_x86_64.qcow2         disk_rocky9_support_x86_64.qcow2

@tcooper
tcooper requested a review from a team April 28, 2026 21:39
@tcooper tcooper self-assigned this Apr 28, 2026
@tcooper tcooper added priority: medium This issue or pull request is of medium priority type: enhancement New feature or request type: maintenance To improve or continue maintenance for something labels Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: medium This issue or pull request is of medium priority type: enhancement New feature or request type: maintenance To improve or continue maintenance for something

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant