From adcad08ca3072d0bda2b6f5e04a5699f87dd9020 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Thu, 5 Oct 2023 14:40:54 +0530 Subject: [PATCH] fix uEnv.txt --- opi5-efi.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opi5-efi.spec b/opi5-efi.spec index e2837f0..09c3e21 100644 --- a/opi5-efi.spec +++ b/opi5-efi.spec @@ -5,7 +5,7 @@ Name: opi5-efi Version: 0.0.1 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Necessary files for booting from vendor U-Boot on Orange Pi 5 License: GPL Provides: %{name}-%{version} @@ -44,7 +44,7 @@ if [ -f /boot/.uname ]; then UNAME_R=$(> /boot/efi/uEnv.txt-%{full_ver} + echo "rootdev=${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