Hi all,
I’m trying to use Kickstart to install Rocky Linux 10, but I’m running into an issue during the partitioning step.
Here’s my current Kickstart configuration:
lang en_US.UTF-8
keyboard fr
timezone Europe/Paris --utc
reboot
text
repo --name="AppStream" --baseurl="http://download.rockylinux.org/pub/rocky/10/AppStream/x86_64/os/"
cdrom
network --onboot=yes --device=ens192 --bootproto=static --ip=10.0.1.105 --netmask=255.255.255.0 --noipv6 --gateway=10.0.1.1 --nameserver=9.9.9.9 --hostname=rockylinux10tpl --activate
ignoredisk --only-use=sda
zerombr
clearpart --all --initlabel --drives=sda --disklabel=gpt
bootloader --location=mbr --boot-drive=sda
part biosboot --fstype=biosboot --size=1 --ondisk=sda
part /boot/efi --fstype="efi" --ondisk=sda --size=500 --asprimary
part /boot --fstype="xfs" --ondisk=sda --size=1024 --asprimary
part pv.01 --fstype="lvmpv" --ondisk=sda --size=1 --grow
volgroup system pv.01
logvol / --fstype="xfs" --vgname system --size=1024 --name=root
logvol /usr --fstype="xfs" --vgname system --size=6144 --name=usr
logvol swap --vgname system --size=512 --name=swap1
logvol swap --vgname system --size=512 --name=swap2
logvol /tmp --fstype="xfs" --vgname system --size=1024 --name=tmp
logvol /var --fstype="xfs" --vgname system --size=12288 --name=var
authselect --passalgo=sha512 --useshadow
selinux --permissive
firewall --enabled --ssh
skipx
firstboot --disable
eula --agreed
rootpw $6$XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --iscrypted
user --name=ansible --groups=wheel --iscrypted --password=$6$XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
sshkey --username=ansible "ssh-ed25519 XXXXXXXXXXXXXXXXXXXXXXXXXXXX"
%packages --ignoremissing --excludedocs
curl
drpm
open-vm-tools
vim
wget
python3
sudo
net-tools
openssh-clients
dnf-utils
# unnecessary firmware
-aic94xx-firmware
-atmel-firmware
-b43-openfwwf
-bfa-firmware
-ipw2100-firmware
-ipw2200-firmware
-ivtv-firmware
-iwl*-firmware
-libertas-usb8388-firmware
-ql*-firmware
-rt61pci-firmware
-rt73usb-firmware
-xorg-x11-drv-ati-firmware
-zd1211-firmware
-cockpit
-quota
-alsa-*
-fprintd-pam
-intltool
-microcode_ctl
%end
%addon com_redhat_kdump --disable
%end
%post
echo 'ansible ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/ansible
chmod 440 /etc/sudoers.d/ansible
systemctl enable vmtoolsd
systemctl start vmtoolsd
%end
Do you notice anything unusual in this configuration that could explain the issue?
Here are some relevant logs I can see in the tmux tabs during the installation :
Starting installer, one moment...
libreport is not available in this environment - bug reporting disabled
anaconda 40.20.1 for Rocky Linux 10.0 started.
* installation log files are stored in /tmp during the installation
* shell is available on TTY2 and in second TMUX pane (ctrl+b, then press 2)
* if the graphical installation interface fails to start, try again with the
inst.text boot option to start text installation
* when reporting a bug add logs from /tmp as separate text plain attachments
09:23:10 Not asking for remote desktop session because text mode was explicitly asked for in kickstart
unknown Not asking for remote desktop session because of an automated install
Starting automated install.Saving storage configuration...
Checking storage configuration...
................................................................................................................................................................................................................................................................................................................................
DEBUG:anaconda.modules.storage.partitioning.validate:Run sanity check verify_lvm_destruction.
DEBUG:anaconda.modules.storage.partitioning.validate:Run sanity check verify_requests.
DEBUG:anaconda.modules.storage.partitioning.validate:Storage check finished with success.
DEBUG:anaconda.modules.storage:The storage model has changed.
DEBUG:anaconda.modules.storage:The partitioning CUSTOM is applied.
DEBUG:blivet: DeviceTree.handle_format: name: sr0 :
DEBUG:blivet: OpticalDevice.media_present: sr0 ; status: True :
DEBUG:blivet:no type or existing type for sr0, bailing
DEBUG:blivet: DeviceTree.handle_format: name: sr1 :
DEBUG:blivet: OpticalDevice.media_present: sr1 ; status: True :
DEBUG:blivet:no type or existing type for sr1, bailing
DEBUG:blivet: DeviceTree.get_device_by_name: name: sr0 ; incomplete: True ; hidden: True :
DEBUG:blivet: DeviceTree.get_device_by_name returned existing 40 GiB disk sda (2) with existing iso9660 filesystem
DEBUG:dasbus.connection:Publishing an object at /org/fedoraproject/Anaconda/Modules/Storage/DeviceTree/1.
DEBUG:blivet: DeviceTree.get_device_by_name: name: /dev/sda ; incomplete: True ; hidden: True :
DEBUG:blivet: DeviceTree.get_device_by_name returned existing B B file /images/install.img (27)
DEBUG:blivet: DeviceTree.get_device_by_name: name: loop0 ; incomplete: True ; hidden: True :
DEBUG:blivet: DeviceTree.get_device_by_name returned existing B B loop loop0 (31)
DEBUG:blivet: DeviceTree.get_device_by_name: name: sda ; incomplete: True ; hidden: True :
DEBUG:blivet: DeviceTree.get_device_by_name returned existing 40 GiB disk sda (2) with non-existent gpt disklabel
DEBUG:blivet: DeviceTree.get_device_by_name: name: sda1 ; incomplete: True ; hidden: True :
DEBUG:blivet: DeviceTree.get_device_by_name returned non-existent 500 MiB partition sda1 (69) with non-existent efi filesystem mounted at /boot/efi
DEBUG:blivet: DeviceTree.get_device_by_name: name: sda2 ; incomplete: True ; hidden: True :
DEBUG:blivet: DeviceTree.get_device_by_name returned non-existent 1024 KiB partition sda2 (62) with non-existent biosboot
DEBUG:blivet: DeviceTree.get_device_by_name: name: sda3 ; incomplete: True ; hidden: True :
DEBUG:blivet: DeviceTree.get_device_by_name returned non-existent 1824 MiB partition sda3 (76) with non-existent xfs filesystem mounted at /boot
DEBUG:blivet: DeviceTree.get_device_by_name: name: sda4 ; incomplete: True ; hidden: True :
DEBUG:blivet: DeviceTree.get_device_by_name returned non-existent 38.51 GiB partition sda4 (63) with non-existent lvm
DEBUG:blivet: DeviceTree.get_device_by_name: name: sr0 ; incomplete: True ; hidden: True :
DEBUG:blivet: DeviceTree.get_device_by_name returned existing 816.93 MiB cdrom sr0 (4) with existing iso9660 filesystem
DEBUG:blivet: DeviceTree.get_device_by_name: name: sr1 ; incomplete: True ; hidden: True :
DEBUG:blivet: DeviceTree.get_device_by_name returned existing 352 KiB cdrom sr1 (13) with existing iso9660 filesystem
DEBUG:blivet: DeviceTree.get_device_by_name: name: system ; incomplete: True ; hidden: True :
DEBUG:blivet: DeviceTree.get_device_by_name returned non-existent 38.51 GiB lvm vg system (69)
DEBUG:blivet: DeviceTree.get_device_by_name: name: system-root ; incomplete: True ; hidden: True :
DEBUG:blivet: DeviceTree.get_device_by_name returned non-existent 1024 MiB lvm lv system-root (95) with non-existent xfs filesystem mounted at /
DEBUG:blivet: DeviceTree.get_device_by_name: name: system-swap1 ; incomplete: True ; hidden: True :
DEBUG:blivet: DeviceTree.get_device_by_name returned non-existent 512 MiB lvm lv system-swap1 (115) with non-existent swap
DEBUG:blivet: DeviceTree.get_device_by_name: name: system-swap2 ; incomplete: True ; hidden: True :
DEBUG:blivet: DeviceTree.get_device_by_name returned non-existent 512 MiB lvm lv system-swap2 (122) with non-existent swap
DEBUG:blivet: DeviceTree.get_device_by_name: name: system-tmp ; incomplete: True ; hidden: True :
DEBUG:blivet: DeviceTree.get_device_by_name returned non-existent 8 GiB lvm lv system-tmp (131) with non-existent xfs filesystem mounted at /tmp
DEBUG:blivet: DeviceTree.get_device_by_name: name: system-usr ; incomplete: True ; hidden: True :
DEBUG:blivet: DeviceTree.get_device_by_name returned non-existent 8 GiB lvm lv system-usr (138) with non-existent xfs filesystem mounted at /usr
DEBUG:blivet: DeviceTree.get_device_by_name: name: system-var ; incomplete: True ; hidden: True :
DEBUG:blivet: DeviceTree.get_device_by_name returned non-existent 12 GiB lvm lv system-var (140) with non-existent xfs filesystem mounted at /var
tail: cannot open '/tmp/program.log' for reading: No such file or directory
tail: '/tmp/program.log' has appeared; following new file
09:23:05.971 INF program: Running... hostname --list
09:23:05.997 INF program: Running... auditctl -e 0
09:23:05.999 INF program: enabled 0
09:23:06.000 INF program: failure 1
09:23:06.000 INF program: pid 0
09:23:06.000 INF program: rate_limit 0
09:23:06.000 INF program: backlog_limit 64
09:23:06.000 INF program: lost 0
09:23:06.001 INF program: backlog 0
09:23:06.001 INF program: backlog_wait_time 60000
09:23:06.001 INF program: backlog_wait_time_actual 0
09:23:06.001 DBG program: Return code: 0
09:23:10.148 INF program: Running... dbus-daemon --print-address --syslog --config-file=/usr/share/anaconda/dbus/anaconda-bus.conf
09:23:10.246 INF program: Running... /usr/lib/systemd/systemd --user
09:23:10.444 INF program: Running... hostname --list
09:23:10.615 INF program: Running... udevadm settle --timeout=300
09:23:10.647 DBG program: Return code: 0
09:23:10.941 INF program: Running... udevadm settle --timeout=300
09:23:10.965 DBG program: Return code: 0
09:23:10.971 INF program: Running... udevadm settle --timeout=300
09:23:10.989 DBG program: Return code: 0
09:23:19.025 INF program: Running... hwtexec --hostosig --utc
09:23:19.146 INF program: Running... systemctl start chronyd
09:23:19.467 DBG program: Return code: 0
09:23:19.802 DBG program: Return code: 0
user_agent: libdnf (Rocky Linux 10.0; generic; Linux.x86_64)
username:
DEBUG:anaconda.modules.payloads.payload.dnf.dnf_manager:Load metadata for the 'anaconda' repository.
INFO:lib64:Downloading: file:///run/install/sources/mount-0000-cdrom/repodata/repomd.xml
INFO:lib64:Error during transfer: Curl error (37): Could not read a file:// file for file:///run/install/sources/mount-0000-cdrom/repodata/repomd.xml [Couldn't open file /run/install/sources/mount-0000-cdrom-repodata/repomd.xml]
DEBUG:dnf:error: Curl error (37): Could not read a file:// file for file:///run/install/sources/mount-0000-cdrom/repodata/repomd.xml [Couldn't open file /run/install/sources/mount-0000-cdrom-repodata/repomd.xml]
WARNING:dnf:Errors during downloading metadata for repository 'anaconda':
- Curl error (37): could not read a file:// file for file:///run/install/sources/mount-0000-cdrom/ [Couldn't open file /run/install/sources
/mount-0000-cdrom/repodata/repomd.xml]
DEBUG:anaconda.modules.payloads.payload.dnf.dnf_manager:Failed to load metadata from (' file:///run/install/sources/mount-0000-cdrom').
data for repo 'anaconda' Cannot download repodata/repomd.xml: All mirrors were tried
INFO:anaconda.core.threads:Thread Failed: AnaTaskThread-SetUpDNFSourcesTask-1 (1402c0492950200)
ERROR:anaconda.modules.common.task.task:SetUpDNFSourcesTask has failed with an exception:
File "/usr/lib64/python3.12/site-packages/pyanaconda/core/threads.py", line 200, in run
threading.Thread.run(self)
File "/usr/lib64/python3.12/threading.py", line 1012, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 94, in _thread_run_callback
self._task_run_callback()
File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 107, in _task_run_callback
self._set_result(self.run())
File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/payloads/payload.dnf/initialization.py", line 110, in run
self.__load_source(dnf_manager, self._source, repository)
File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/payloads/payload.dnf/initialization.py", line 227, in _load_source
create_repository(dnf_manager, repository)
File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/payloads/payload.dnf/repositories.py", line 224, in create_repository
raise SourceSetupError(msg.format(name=repository.name, details=str(e))) from None
pyanaconda.modules.common.errors.payload.SourceSetupError: Failed to add the 'anaconda' repository: Failed to download metadata for repo 'anaconda'
load repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
INFO:anaconda.core.threads:Thread Done: AnaTaskThread-SetUpDNFSourcesTask-1 (1402c0492950200)
WARNING:dasbus.server.handler:The call org.fedoraproject.Anaconda.Task.finish has failed with an exception:
Traceback (most recent call last):
File "/usr/lib64/python3.12/site-packages/dasbus/server/handler.py", line 455, in _method_callback
result = self._handle_call(
File "/usr/lib64/python3.12/site-packages/dasbus/server/handler.py", line 265, in _handle_call
return handler(*parameters, **additional_args)
File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task_interface.py", line 114, in finish
self._implementation.finish()
File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 173, in finish
thread_manager.raise_if_error(self._thread_name)
File "/usr/lib64/python3.12/site-packages/pyanaconda/core/threads.py", line 171, in raise_if_error
raise exc_info[1]
File "/usr/lib64/python3.12/site-packages/pyanaconda/core/threads.py", line 200, in run
threading.Thread.run(self)
File "/usr/lib64/python3.12/threading.py", line 1012, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 94, in _thread_run_callback
self._task_run_callback()
File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 107, in _task_run_callback
self._set_result(self.run())
File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/payloads/payload.dnf/initialization.py", line 110, in run
self._load_source(dnf_manager, self._source, repository)
File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/payloads/payload.dnf/initialization.py", line 227, in _load_source
create_repository(dnf_manager, repository)
File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/payloads/payload.dnf/repositories.py", line 224, in create_repository
raise SourceSetupError(msg.format(name=repository.name, details=str(e))) from None
pyanaconda.modules.common.errors.payload.SourceSetupError: Failed to add the 'anaconda' repository: Failed to download metadata for repo 'anaconda'
load repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
DEBUG:dasbus.connection:Publishing an object at /org/fedoraproject/Anaconda-Modules-Payloads-Task-3.
INFO:anaconda.core.threads:Running Thread: AnaTaskThread-TearDownDNFSourcesTask-2 (1402c0492950200)
INFO:anaconda.modules.common.task.task:3 DNF installation sources
DEBUG:anaconda.modules.payloads.base.initialization:Tearing down sources...
DEBUG:anaconda.modules.payloads.base.initialization:Running a source: Source(type='CDROM')
DEBUG:anaconda.modules.payloads.base.initialization:Running a task: Unmount an installation source
DEBUG:anaconda.modules.payloads.source.mount_tasks:Unmounting installation source
DEBUG:program:Running ... umount /mnt/install/sources/mount-0000-cdrom
DEBUG:program:Return code: 0
DEBUG:anaconda.modules.payloads.payload.dnf.dnf_manager:The DNF base has been reset.
INFO:anaconda.core.threads:Thread Done: AnaTaskThread-TearDownDNFSourcesTask-2 (1402c0492950200)
DEBUG:dnf:User-Agent: constructed 'libdnf (Rocky Linux 10.0; generic; Linux.x86_64)'
DEBUG:dnf:timer: loading repos: 0 ms
DEBUG:anaconda.modules.payloads.payload.dnf.utils:Release version of Rocky Linux is 10.0.
DEBUG:dnf:Getting group metadata...
DEBUG:dnf:timer: loading comps: 0 ms
DEBUG:anaconda.modules.payloads.payload.dnf.dnf_manager:The DNF base has been created.
Thanks in advance for any insights!