Compare commits

...

3 Commits

3 changed files with 8 additions and 13 deletions

View File

@ -1,8 +1,8 @@
# Initialize the disk # Initialize the disk
zerombr zerombr
# Remove all partitions # Remove all partitions and initialize the disk with a GPT partition table
clearpart --drives=sda --all clearpart --drives=sda --disklabel=gpt --all
# Create partitions # Create partitions
# The '--size' option takes MB, not MiB # The '--size' option takes MB, not MiB

View File

@ -14,6 +14,8 @@ kernel-stable-tfg
#kernel-lts-tfg #kernel-lts-tfg
#kernel-rc-tfg #kernel-rc-tfg
#kernel-next-tfg #kernel-next-tfg
# For the Orange Pi 5 (will pull the kernel as a dependency, don't touch this)
#opi5-efi
# Other necessary packages # Other necessary packages
cloud-utils-growpart cloud-utils-growpart

View File

@ -17,11 +17,8 @@ if ! dnf repolist --enabled | grep "download.rockylinux.org_pub_sig_${DNF_RELEAS
dnf config-manager --set-enabled "download.rockylinux.org_pub_sig_${DNF_RELEASEVER}_altarch_${MACHINE_ARCH}_altarch-common" || exit 1 dnf config-manager --set-enabled "download.rockylinux.org_pub_sig_${DNF_RELEASEVER}_altarch_${MACHINE_ARCH}_altarch-common" || exit 1
fi fi
# Enable EPEL if packages are installed from EPEL
if dnf list installed | grep '@epel' > /dev/null || dnf list installed | grep 'epel-release' > /dev/null; then if dnf list installed | grep '@epel' > /dev/null || dnf list installed | grep 'epel-release' > /dev/null; then
# Install the epel-release package since we don't know if a package was
# installed from EPEL or only the epel-release package was installed.
# Either way, the user definitely wants EPEL enabled, so just do that
# anyways.
dnf install --assumeyes epel-release dnf install --assumeyes epel-release
if ! dnf repolist --enabled | grep 'crb' > /dev/null; then if ! dnf repolist --enabled | grep 'crb' > /dev/null; then
@ -33,18 +30,14 @@ if dnf list installed | grep '@epel' > /dev/null || dnf list installed | grep 'e
fi fi
fi fi
# This is my (Pratham Patel) COPR that I use to provide 'kernel-stable-tfg' and # Enable my COPR for regular updates for the Stable and LTS kernels.
# 'kernel-lts-tfg' packages. I intend to keep it up-to-date so this is enabled
# so that users can get updates whenever upstream bumps versions.
dnf copr enable --assumeyes prathampatel/kernel-tfg "rhel-${DNF_RELEASEVER}-${MACHINE_ARCH}" dnf copr enable --assumeyes prathampatel/kernel-tfg "rhel-${DNF_RELEASEVER}-${MACHINE_ARCH}"
if ! dnf repolist --enabled | grep 'copr:copr.fedorainfracloud.org:prathampatel:kernel-tfg' > /dev/null; then if ! dnf repolist --enabled | grep 'copr:copr.fedorainfracloud.org:prathampatel:kernel-tfg' > /dev/null; then
dnf config-manager --set-enabled 'copr:copr.fedorainfracloud.org:prathampatel:kernel-tfg' || exit 1 dnf config-manager --set-enabled 'copr:copr.fedorainfracloud.org:prathampatel:kernel-tfg' || exit 1
fi fi
if dnf list installed | grep "kernel-next-tfg\|kernel-rc-tfg" > /dev/null; then # Enable my testing COPR in case the user installed something from there
# The user has installed a package that provides either kernel-next or if dnf list installed | grep '@COPR-kernel-testing-tfg' > /dev/null; then
# kernel-rc which comes from the the 'prathampatel/kernel-testing-tfg'
# COPR repository. Since that is used, enable it so updates reach the user.
dnf copr enable --assumeyes prathampatel/kernel-testing-tfg "rhel-${DNF_RELEASEVER}-${MACHINE_ARCH}" dnf copr enable --assumeyes prathampatel/kernel-testing-tfg "rhel-${DNF_RELEASEVER}-${MACHINE_ARCH}"
if ! dnf repolist --enabled | grep 'copr:copr.fedorainfracloud.org:prathampatel:kernel-testing-tfg' > /dev/null; then if ! dnf repolist --enabled | grep 'copr:copr.fedorainfracloud.org:prathampatel:kernel-testing-tfg' > /dev/null; then
dnf config-manager --set-enabled 'copr:copr.fedorainfracloud.org:prathampatel:kernel-testing-tfg' || exit 1 dnf config-manager --set-enabled 'copr:copr.fedorainfracloud.org:prathampatel:kernel-testing-tfg' || exit 1