fix conflict with pkg efi-filesystem

This commit is contained in:
Pratham Patel 2023-10-05 09:20:53 +05:30
parent 2c56e03c67
commit 621246d46c
No known key found for this signature in database

View file

@ -27,15 +27,19 @@ echo "Nothing to build"
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/boot/efi
cp %{SOURCE0} $RPM_BUILD_ROOT/boot/efi/boot.cmd
cp %{SOURCE1} $RPM_BUILD_ROOT/boot/efi/uEnv.txt
mkdir -p $RPM_BUILD_ROOT/opt/opi5-efi
cp %{SOURCE0} $RPM_BUILD_ROOT/opt/opi5-efi/boot.cmd
cp %{SOURCE1} $RPM_BUILD_ROOT/opt/opi5-efi/uEnv.txt
%clean
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 /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