more opi5 hakx

This commit is contained in:
Pratham Patel 2023-08-09 18:38:19 +05:30
parent 9a378e2619
commit 9caf0cea33
No known key found for this signature in database

View File

@ -1,6 +1,7 @@
%include bootloader-stuff.ksi %include bootloader-stuff.ksi
%post %post
ROOT_PART_UUID=$(grep ' / ' /etc/fstab | awk '{ print $1 }')
# Setup networking temporarily # Setup networking temporarily
[ -f /etc/resolv.conf ] || echo "nameserver 1.1.1.1" > /etc/resolv.conf [ -f /etc/resolv.conf ] || echo "nameserver 1.1.1.1" > /etc/resolv.conf
@ -9,6 +10,7 @@
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.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/boot.scr' --output /boot/boot.scr
curl 'https://git.rockylinux.org/thefossguy/opi5-boot/-/raw/r9/orangepiEnv.txt' --output /boot/orangepiEnv.txt 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
# The script that expands root partition # The script that expands root partition
[ -d /usr/local/bin ] || mkdir --verbose /usr/local/bin [ -d /usr/local/bin ] || mkdir --verbose /usr/local/bin