Compare commits

...

2 Commits

Author SHA1 Message Date
Pratham Patel e6b49bd7e8
bump rel_ver 2023-10-05 09:57:57 +05:30
Pratham Patel 64d4f3bc66
remove dupes 2023-10-05 09:57:43 +05:30
1 changed files with 3 additions and 5 deletions

View File

@ -5,7 +5,7 @@
Name: opi5-efi
Version: 0.0.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Necessary files for booting from vendor U-Boot on Orange Pi 5
License: GPL
Provides: %{name}-%{version}
@ -37,11 +37,9 @@ rm -rf $RPM_BUILD_ROOT
%post
set -xeuf -o pipefail
cp /opt/opi5-efi/boot.cmd $RPM_BUILD_ROOT/boot/efi/boot.cmd
cp /opt/opi5-efi/uEnv.txt $RPM_BUILD_ROOT/boot/efi/uEnv.txt
cp /opt/opi5-efi/boot.cmd /boot/efi/boot.cmd-%{full_ver}
cp /opt/opi5-efi/uEnv.txt /boot/efi/uEnv.txt-%{full_ver}
cp /boot/efi/boot.cmd /boot/efi/boot.cmd-%{full_ver}
cp /boot/efi/uEnv.txt /boot/efi/uEnv.txt-%{full_ver}
if [ -f /boot/.uname ]; then
UNAME_R=$(</boot/.uname)
BOOT_PART=$(grep '/ ' /etc/fstab | awk '{print $1}')