Compare commits

...

7 Commits
r9 ... opi5

6 changed files with 13 additions and 12 deletions

View File

@ -2,7 +2,7 @@
set -x
APPLIANCE_NAME="Rocky-9-aarch64-minimal"
APPLIANCE_NAME="Rocky-9-aarch64-Orange-Pi-5-minimal"
KICKSTARTER_FILENAME="${APPLIANCE_NAME}.ks"
IMAGE_NAME="${APPLIANCE_NAME}-$(TZ='UTC' date +%Y.%m.%d-%H%M%S).raw"
COMPRESSED_IMAGE_NAME="${IMAGE_NAME}.zst"

View File

@ -14,11 +14,6 @@ dnf list installed | grep 'dracut-config-generic' > /dev/null && \
# /lib/kernel/install.d/10-devicetree.install remove
#fi
# remove '/boot/dtb' because the kernel should use '/boot/dtb'
if [ -d /boot/dtb ]; then
rm -r -v -f /boot/dtb
fi
# Kernel selection at boot
cat << EOF > /etc/sysconfig/kernel
# This file was generated by the Kickstart repository used to create this disk image

View File

@ -2,7 +2,6 @@
# Include packages that are basic and also packages that are expected to be present
@core
@standard
# Extra packages to do 'uboot -> grub -> linux'
dracut-config-generic
@ -19,15 +18,16 @@ systemd-udev
uboot-tools
uboot-images-armv8
# Raspberry Pi firmware
bcm283x-firmware # this will pull in other RPi related firmware ;)
#bcm283x-firmware # this will pull in other RPi related firmware ;)
# Raspberry Pi overlays
bcm283x-overlays
#bcm283x-overlays
# Kernel selection
## mainline (the latest "stable" release from kernel.org)
kernel-ml # TODO: change this to whatever <sig-kernel> ends up using
#kernel-ml # TODO: change this to whatever <sig-kernel> ends up using
## LTS (the latest "longterm" release from kernel.org)
#kernel-lt # TODO: change this to whatever <sig-kernel> ends up using
kernel-opi5
# Other packages
bash-completion
@ -47,6 +47,5 @@ tmux
# Remove some packages
-dracut-config-rescue
-java-11-*
-kmod-kvdo
%end

View File

@ -28,6 +28,13 @@ curl 'https://git.resf.org/thefossguy/rocky-linux-generic-images/raw/branch/r9/s
[ -f /usr/local/bin/expand-rootfs.sh ] && \
chmod --verbose +x /usr/local/bin/expand-rootfs.sh
# Orange Pi 5 stuff
ROOT_PART_UUID=$(grep ' / ' /etc/fstab | awk '{ print $1 }')
curl 'https://git.rockylinux.org/thefossguy/opi5-boot/-/raw/r9/boot.cmd' --output /boot/boot.cmd
curl 'https://git.rockylinux.org/thefossguy/opi5-boot/-/raw/r9/boot.scr' --output /boot/boot.scr
curl 'https://git.rockylinux.org/thefossguy/opi5-boot/-/raw/r9/orangepiEnv.txt' --output /boot/orangepiEnv.txt
sed -i "s/REPLACE_WITH_UUID_HERE_6969/${ROOT_PART_UUID}/g" /boot/orangepiEnv.txt
# Remove all network connections and/or links
rm -v -f /etc/sysconfig/network-scripts/ifcfg-link
rm -v -f /etc/NetworkManager/system-connections/*.nmconnection

View File

@ -22,7 +22,7 @@ repo --install --name=ELRepo-Kernel --mirrorlist=http://mirrors.elrepo.org/mirro
# Pratham Patel's (thefossguy) COPR for SIG/AltArch stuff
# Enable this for the following SBCs:
# - Orange Pi 5 (non B, non Pro models)
#repo --install --name=COPR-thefossguy --baseurl=https://download.copr.fedorainfracloud.org/results/prathampatel/rocky-9-sig-altarch/rhel-9-aarch64
repo --install --name=COPR-thefossguy-OPi5 --baseurl=https://download.copr.fedorainfracloud.org/results/prathampatel/rocky-9-orange-pi-5/rhel-9-aarch64
# Enable two additional repositories
# <sig-altarch>: All SBC-specific stuff that is not "Enterprise Linux" (uboot, on-board WiFi/BT firmware and other tools)