fix uEnv.txt
This commit is contained in:
parent
970d32e5f9
commit
adcad08ca3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user