From 96db78824f25089ff3d2beda0eb2636af3b8b290 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Thu, 5 Oct 2023 05:33:37 +0530 Subject: [PATCH] place opi5-efi files in /boot/efi --- opi5-efi.spec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/opi5-efi.spec b/opi5-efi.spec index 6e090e9..e24e0fd 100644 --- a/opi5-efi.spec +++ b/opi5-efi.spec @@ -23,8 +23,8 @@ echo "Nothing to prepare" echo "Nothing to build" %install -cp ${SOURCE0} $RPM_BUILD_ROOT/boot/boot.cmd-%{full_ver} -cp ${SOURCE1} $RPM_BUILD_ROOT/boot/uEnv.txt-%{full_ver} +cp ${SOURCE0} $RPM_BUILD_ROOT/boot/efi/boot.cmd-%{full_ver} +cp ${SOURCE1} $RPM_BUILD_ROOT/boot/efi/uEnv.txt-%{full_ver} %clean rm -rf $RPM_BUILD_ROOT @@ -35,11 +35,11 @@ if [ -f /boot/.uname ]; then UNAME_R=$(> /boot/uEnv.txt-%{full_ver} - sed -i "s/setenvrootdev/setenv rootdev \"${BOOT_PART}\"/" /boot/boot.cmd-%{full_ver} - sed -i "s/setenvunamer/setenv unamer \"${UNAME_R}\"/" /boot/boot.cmd-%{full_ver} + echo "${BOOT_PART}" >> /boot/efi/uEnv.txt-%{full_ver} + sed -i "s/setenvrootdev/setenv rootdev \"${BOOT_PART}\"/" /boot/efi/boot.cmd-%{full_ver} + sed -i "s/setenvunamer/setenv unamer \"${UNAME_R}\"/" /boot/efi/boot.cmd-%{full_ver} else echo "ERROR: No /boot/.uname found to extract 'uname -r' from." fi -mkimage -C none -A arm -T script -d /boot/boot.cmd-%{full_ver} /boot/boot.scr-%{full_ver} -cp /boot/boot.scr-%{full_ver} /boot/boot.scr +mkimage -C none -A arm -T script -d /boot/efi/boot.cmd-%{full_ver} /boot/efi/boot.scr-%{full_ver} +cp /boot/boot.scr-%{full_ver} /boot/efi/boot.scr