diff --git a/opi5-efi.spec b/opi5-efi.spec index 8cb857b..8d452d4 100644 --- a/opi5-efi.spec +++ b/opi5-efi.spec @@ -5,11 +5,11 @@ Name: opi5-efi Version: 0.0.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Necessary files for booting from vendor U-Boot on Orange Pi 5 License: GPL Provides: %{name}-%{version} -Requires: uboot-tools +Requires: kernel-opi5-tfg uboot-tools %global full_ver %{version}-%{release} @@ -49,6 +49,7 @@ if [ -f /boot/.uname ]; then sed -i "s/setenvunamer/setenv unamer \"${UNAME_R}\"/" /boot/efi/boot.cmd-%{full_ver} else echo "ERROR: No /boot/.uname found to extract 'uname -r' from." + exit 1 fi mkimage -C none -A arm -T script -d /boot/efi/boot.cmd-%{full_ver} /boot/efi/boot.scr-%{full_ver}