I created a Kickstart file using Rocky 9.5 OS, but after booting, when I try to use the dnf command, I encounter the error: [Errno 30] Read-only file system: '/var/log/dnf.log': '/var/log/dnf.log'. Additionally, when I run the lsblk command, I see that the mount points are not properly set. What could be the issue?
The disk partitioning settings I want are as follows:
File system: XFS
Partitions:
/boot: 1G
/boot/efi: 1G
LVM provisioning:
swap: 8G
/data: 200G
The rest of the space allocated to /.
Please help me resolve this issue.
# /dev/sda만 사용
ignoredisk --only-use=sda
zerombr
# 시스템 부트로더 설정
bootloader --location=mbr --boot-drive=sda
# 디스크 파티셔닝
clearpart --all --initlabel --drives=sda --disklabel=gpt
# BIOS 부팅용 'biosboot' 파티션 추가
part biosboot --size=1 --fstype=biosboot --ondisk=sda
part /boot/efi --fstype="efi" --ondisk=sda --size=500 --asprimary --fsoptions="umask=0077,shortname=winnt"
part /boot --fstype="xfs" --ondisk=sda --size=1024 --asprimary
part pv.01 --fstype="lvmpv" --ondisk=sda --size=1024 --asprimary --grow
volgroup vg_root pv.01
logvol swap --fstype="swap" --vgname=vg_root --name=lv_swap --size=8192
logvol /data --fstype="xfs" --vgname=vg_root --name=lv_data --size=204800
logvol / --fstype="xfs" --vgname=vg_root --name=lv_root --size=1024 --grow
# %packages 옵션
%packages
@^minimal-environment # 최소 설치 환경
@standard # 표준
%end
I also referred to the content from the provided link, but when I try to follow it or remove the biosboot 1G partition, I get an error saying “insufficient kickstart configuration,” and the partitioning is not done properly.
# DISKS, PARTITIONS, VOLUME GROUPS, LOGICAL VOLUMES
# Install target is usually sda, vda, or nvme0n1; adjust all references below accordingly.
# The EFI & /boot partitions are explicitly set here, but some people just use `reqpart`.
ignoredisk --only-use=sda
zerombr
clearpart --all --initlabel --disklabel=gpt
bootloader --location=mbr --boot-drive=sda --append='crashkernel=auto'
part /boot/efi --label=FIRMWARE --size=1024 --asprimary --fstype=efi
part /boot --label=BOOT --size=1024 --asprimary --fstype=ext4
part pv.01 --label=VOLUMES --size=1024 --grow --asprimary
volgroup volgroup0 pv.01
logvol swap --label=SWAP --size=8192 --vgname=volgroup0 --name=swap
logvol / --label=ROOT --size=1024 --grow --vgname=volgroup0 --name=root --fstype=xfs
What does your full kickstart look like? Without that information, we cannot assist you in determining what you may have configured to cause the read-only file systems nor the permission denied on /etc/fstab in your second post.