remove dupes

This commit is contained in:
Pratham Patel 2023-10-05 09:57:43 +05:30
parent 5504beff8f
commit 64d4f3bc66
No known key found for this signature in database

View File

@ -37,11 +37,9 @@ rm -rf $RPM_BUILD_ROOT
%post %post
set -xeuf -o pipefail set -xeuf -o pipefail
cp /opt/opi5-efi/boot.cmd $RPM_BUILD_ROOT/boot/efi/boot.cmd cp /opt/opi5-efi/boot.cmd /boot/efi/boot.cmd-%{full_ver}
cp /opt/opi5-efi/uEnv.txt $RPM_BUILD_ROOT/boot/efi/uEnv.txt 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 if [ -f /boot/.uname ]; then
UNAME_R=$(</boot/.uname) UNAME_R=$(</boot/.uname)
BOOT_PART=$(grep '/ ' /etc/fstab | awk '{print $1}') BOOT_PART=$(grep '/ ' /etc/fstab | awk '{print $1}')