diff --git a/opi5-efi.spec b/opi5-efi.spec index 2494b38..05735d5 100644 --- a/opi5-efi.spec +++ b/opi5-efi.spec @@ -5,7 +5,7 @@ Name: opi5-efi Version: 0.0.4 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Necessary files for booting from vendor U-Boot on Orange Pi 5 License: GPL Provides: %{name}-%{version} diff --git a/post.sh b/post.sh index b27b87c..5b1d729 100644 --- a/post.sh +++ b/post.sh @@ -5,8 +5,8 @@ set -xeuf -o pipefail UNAME_R="$(> "/boot/efi/uEnv.txt" sed -i "s/setenvrootdev/setenv rootdev \"${BOOT_PART}\"/" "/boot/efi/boot.cmd" mkimage -A arm -T ramdisk -C none -n uInitrd -d "/boot/initramfs-${UNAME_R}.img" "/boot/uInitrd-${UNAME_R}" -ln -s "/boot/uInitrd-${UNAME_R}" "/boot/uInitrd" -mkimage -C none -A arm -T script -d "/boot/efi/boot.cmd" "/boot/efi/boot.scr" +mkimage -C none -A arm -T script -d /boot/efi/boot.cmd /boot/efi/boot.scr + +pushd /boot +ln -s "uInitrd-${UNAME_R}" uInitrd +popd