From 39a34b27581882b32ab634c8321f4f1302668cec Mon Sep 17 00:00:00 2001 From: Skip Grube Date: Sun, 4 Aug 2024 16:54:33 -0400 Subject: [PATCH] Minor fixes for 9.4 update - Added launcher script that uses KVM for easy building - Fixed disk - Added grub2 entries for both mbr + efi boot - Minor package fixes and nvidia module stream fix --- include/ws9_disk.ks | 4 +--- include/ws9_post_fixes.ks | 5 ++++- include/ws9_repos_pkgs.ks | 9 +++++--- mkiso.sh | 43 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 54 insertions(+), 7 deletions(-) create mode 100755 mkiso.sh diff --git a/include/ws9_disk.ks b/include/ws9_disk.ks index ac2f616..27fddbd 100644 --- a/include/ws9_disk.ks +++ b/include/ws9_disk.ks @@ -5,6 +5,4 @@ zerombr # Partition clearing information clearpart --all # Disk partitioning information -part /boot --fstype="ext4" --size=3000 -part / --fstype="ext4" --size=12000 - +part / --fstype="ext4" --size=15000 diff --git a/include/ws9_post_fixes.ks b/include/ws9_post_fixes.ks index df9cb53..c70dc1c 100644 --- a/include/ws9_post_fixes.ks +++ b/include/ws9_post_fixes.ks @@ -60,8 +60,11 @@ export end="%end" cat > /usr/share/anaconda/post-scripts/95-kernel-gfx-args.ks < /dev/null && pwd ) +KS="NC_Rocky9_Workstation.ks" + +ROCKYISO="${HOME}/Rocky-9-latest-x86_64-boot.iso" + +# Image build home is $HOME/gdch-build by default + +# Reset image build directory to clean state +rm -f livemedia.log program.log virt-install.log ./temp_iso_${IMAGE}.ks + +# Flatten kickstart to temporary file, and swap in private CIQ mountain access key: +ksflatten -c ${GITDIR}/${KS} -o ./temp_iso_${IMAGE}.ks + +echo "Now launching build. Connect to 127.0.0.1:5930 (VNC) to see in real-time..." + +# run the image creation: +livemedia-creator --ks ./temp_iso_${IMAGE}.ks --project "Rocky 9 NoCompromise Desktop" \ +--volid "rocky9live" --releasever 9 \ +--make-iso --iso-only \ +--iso-name ${IMAGE}.iso \ +--iso ${ROCKYISO} \ +--vnc="vnc=127.0.0.1:30" \ +--ram 4096 --vcpus 2 \ +--extra-boot-args 'i915.force_probe=* rd.driver.blacklist=nouveau nvidia_drm.modeset=0' +--virt-uefi --nomacboot \ +--resultdir ${IMAGE} + +#rm -f ./temp_iso_${IMAGE}.ks + +echo "Finished build. Making sha256sum..." +pushd ${IMAGE} +sha256sum --tag ${IMAGE}.iso > ${IMAGE}.iso.sha256sum.txt +popd + +echo -e "\n\nFinished ISO image creation. ISO file can be found in $(pwd)/${IMAGE}/" + +