From 66cdc4bdb4711b7ccc5ddd6cbb7ee918990e0f6d Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Fri, 11 Aug 2023 21:14:48 +0530 Subject: [PATCH] OPi5 specific stuff --- includes/bootloader-stuff.ksi | 5 ----- includes/post-install.ksi | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/includes/bootloader-stuff.ksi b/includes/bootloader-stuff.ksi index fc2a20a..3b6a0fa 100644 --- a/includes/bootloader-stuff.ksi +++ b/includes/bootloader-stuff.ksi @@ -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 diff --git a/includes/post-install.ksi b/includes/post-install.ksi index bc0060d..fa5cd59 100644 --- a/includes/post-install.ksi +++ b/includes/post-install.ksi @@ -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