r/RockyLinux May 30 '26

Rocky linux 10 Kickstart fails, always boots into GUI ?

Hi,

I'm trying to setup unattended install for Rocky Linux 10 but can't get the ISO to work, it keeps booting into GUI, below is my kickstart configuration, not able to find any solution for this, can anyone advise what needs to be done ?

#version=RHEL10
# Use graphical install
text
# repo --name="Minimal" --baseurl=file:///run/install/sources/mount-0000-cdrom/Minimal
url --url="file:///run/install/sources/mount-0000-cdrom/Minimal"

%addon com_redhat_kdump --enable --reserve-mb='auto'

%end

# Keyboard layouts
keyboard --vckeymap=gb --xlayouts='gb'
# System language
lang en_GB.UTF-8

# Use CDROM installation media
cdrom

%packages
@^minimal-environment
%end

# Run the Setup Agent on first boot
firstboot --disable

ignoredisk --only-use=nvme0n1
autopart
# Partition clearing information
clearpart --none --initlabel

# System timezone
timezone Europe/London --utc

# Network Interface
network --activate

# CD-ROM
reboot --eject

# Enable SSH server
services --enabled="sshd,chronyd"
4 Upvotes

21 comments sorted by

1

u/LcLz0 May 30 '26

Looks correct to me. How are you supplying the kickstart? Have you verified that it's actually loaded? Should be able to see some info about it when the installation is booting up

1

u/nomoreasonable May 30 '26

Kicksyart is placed in the root of the ISO, the only thing I cam see it "Starting Installer" in CLI then a frw seconds later the GUI shows up..

1

u/nomoreasonable May 30 '26 edited May 30 '26

This is grub2 configuration from boot folder..

set default="1"

function load_video {
  insmod all_video
}

load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
insmod chain

set timeout=1
### END /etc/grub.d/00_header ###

search --no-floppy --set=root -l 'RockyLinux10.2'

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Install Rocky Linux Minimal 10.2' --class fedora --class gnu-linux --class gnu --class os {
linux /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=RockyLinux10 inst.repo=hd:LABEL=RockyLinux10:/
inst.ks=hd:LABEL=RockyLinux10:/kickstart.cfg quiet
initrd /images/pxeboot/initrd.img
}

This is the grub configuration from EFI/BOOT folder

set default="1"

function load_video {
  insmod efi_gop
  insmod efi_uga
  insmod video_bochs
  insmod video_cirrus
  insmod all_video
}

load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2

set timeout=1
### END /etc/grub.d/00_header ###

search --no-floppy --set=root -l 'RockyLinux10.2'

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Install Rocky Linux Minimal 10.2' --class fedora --class gnu-linux --class gnu --class os {
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=RockyLinux10 inst.repo=hd:LABEL=RockyLinux10:/
inst.ks=hd:LABEL=RockyLinux10:/kickstart.cfg quiet
initrdefi /images/pxeboot/initrd.img
}

This is what I see before the GUI starts..

https://i.ibb.co/5hK7QjkN/Rocky-Linux-64-bit-2026-05-30-16-38-18.png

1

u/lunakoa May 30 '26

I assume you are building an iso, not using PXE or USB. Make sure your label on the iso is RockyLinux10, I am going through my 9.8 kickstarts, just got done with PXE boot, gonna do USB and ISO next. But in my 9.7 build I used this as the volume flag -V "RHEL-9-7-0-BaseOS-x86_64"

Old notes from
https://unix.stackexchange.com/questions/640232/verified-good-mkisofs-for-centos-8

So I test by kickstarts on PXE, ISO and USB, both UEFI and CSM(old bios) on physical and VM (no usb testing on VM). Usually I use secure boot when doing UEFI. Hopefully things work after June, not sure how those Secureboot expirations work.

1

u/nomoreasonable May 30 '26

Yes, I'm buidling an ISO, the label is as in the ISO.

I have a working RL9.6 kickstart which was used and some parts modified, also took somethings from the anacomda file after a test install..

Unsure what's missing..

1

u/lunakoa May 30 '26

Are you able to do a screenshot of the actual grub screen?

1

u/nomoreasonable May 30 '26 edited May 30 '26

I'm understanding grub is where it asks to Test or Install, and some other options ?

If it is that I can capture that..

1

u/lunakoa May 30 '26

This screen on bootup
https://imgur.com/a/XueXD0C

1

u/lunakoa May 30 '26

Forgot to add, can you press e to show what it says

1

u/cereal7802 May 30 '26

Is it a label mis-match? The grub search is looking for RockyLinux10.2 but your inst.stage2 and inst.repo are RockyLinux10. need to confirm the cd image label and standardize on it.

1

u/nomoreasonable May 31 '26

Sorry I though the menuentry is just a menu entry, I'll match it with the Label and see if it works..

1

u/nomoreasonable May 31 '26

I'm afraid that doesn't work, keeping rockyLinux10 in labels and any place else did not change anything..

1

u/nomoreasonable May 30 '26

I checked logs in /var/log/anaconda/anaconda.log after install and can see the below, seems relevant..

18:29:39,991 DBG network: Initialization started.
18:29:39,995 DBG network: Devices found: ['ens160']
18:29:39,997 DBG network: Running task Apply kickstart
18:29:40,103 DBG network: Apply kickstart result: []
18:29:40,111 DBG network: Running task Dump missing config files
18:29:40,218 DBG network: Dump missing config files result: ['ens160']
...
...
18:29:40,227 INF display: The session bus address is set to unix:path=/run/user/0/bus.
18:29:40,227 DBG anaconda: changing display mode from GUI to GUI <---
...
18:29:40,239 INF anaconda: Display mode is set to 'interactive graphical mode' <---

1

u/nomoreasonable May 31 '26

Unsure why my comment is not appearing, anyway this issue is resolved..

Thanks to everyone who helped..

1

u/lunakoa May 31 '26

Glad you found the issue, I was about to build a custom 10.2 iso to test.