From 9caf0cea334c227d240dfda9d8f91145c10ddefc Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Wed, 9 Aug 2023 18:38:19 +0530 Subject: [PATCH] more opi5 hakx --- includes/post-install.ksi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/post-install.ksi b/includes/post-install.ksi index 274551f..d1ebb04 100644 --- a/includes/post-install.ksi +++ b/includes/post-install.ksi @@ -1,6 +1,7 @@ %include bootloader-stuff.ksi %post +ROOT_PART_UUID=$(grep ' / ' /etc/fstab | awk '{ print $1 }') # Setup networking temporarily [ -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.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 # The script that expands root partition [ -d /usr/local/bin ] || mkdir --verbose /usr/local/bin