Fixes for installer and Software app

- Added PackageKit/pkcon refresh to build process - Software app should come pre-cached
- Dropped kdump plugin Anaconda package
- Added end-user Anaconda storage simplified defaults
- Increased default setting+requirements for /boot partition in Anaconda
This commit is contained in:
Skip Grube 2024-08-26 10:49:04 -04:00
parent ac7a4a70da
commit 388198daf4
3 changed files with 33 additions and 2 deletions

View File

@ -60,6 +60,7 @@ kernel-lt-tools
-kernel-modules-extra
-vdo
-kmod-kvdo
-kdump-anaconda-addon
# Nvidia + gfx:
kmod-nvidia-latest-dkms

View File

@ -5,4 +5,4 @@ zerombr
# Partition clearing information
clearpart --all
# Disk partitioning information
part / --fstype="ext4" --size=15000
part / --fstype="ext4" --size=30000

View File

@ -35,6 +35,7 @@ flatpak remote-ls &> /dev/null
flatpak update
dnf -y makecache
pkcon refresh force -c -1 -v
# Enable dkms service:
systemctl enable dkms
@ -47,10 +48,39 @@ echo "Defaults pwfeedback" > /etc/sudoers.d/50_feedback
sed -i 's/NoDisplay=true/#NoDisplay=true/' /usr/share/applications/anaconda.desktop
sed -i 's/NoDisplay=true/#NoDisplay=true/' /usr/share/applications/liveinst.desktop
# Nvidia: double-check we have the latest dkms driver enabled and fully installed
dnf -y module install nvidia-driver:latest-dkms
# Anaconda config: tweak default partition options
cat <<'EOF' >> /etc/anaconda/conf.d/05-desktop-storage-default.conf
# Make default storage more basic for desktop use
# Advanced users can obviously customize if they wish
[Storage]
default_partitioning =
/ (min 12 GiB)
swap (min 2 GiB, max 4 GiB)
default_scheme = PLAIN
file_system_type = ext4
[Storage Constraints]
min_partition_sizes =
/ 12 GiB
/boot 2 GiB
req_partition_sizes =
/ 12 GiB
/boot 2 GiB
EOF
# Tweak the Anaconda /boot partition default size - may need bigger /boot to support multiple upstream kernels
# Fun fact: /boot default is hard-coded in the python sources. Aint Anaconda great?
sed --in-place=".orig" 's/Size("1GiB")/Size("2GiB")/g' /usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/platform.py
# Inside-the-ISO postinstall script
# Anything put in /usr/shar/anaconda/post-scripts/*.ks will be run as a %post
# after the user installs on their system from the booted live ISO. We need to do grub boot modification