fix uEnv.txt

This commit is contained in:
Pratham Patel 2023-10-05 14:40:54 +05:30
parent 970d32e5f9
commit adcad08ca3
No known key found for this signature in database

View file

@ -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/.uname)
BOOT_PART=$(grep '/ ' /etc/fstab | awk '{print $1}')
echo "${BOOT_PART}" >> /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