From d8a4deedcf5c9ddf5d9d2bc3735b6bd66e57c936 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Sun, 8 Oct 2023 15:49:24 +0530 Subject: [PATCH] symlink /boot/uIinitrd --- opi5-efi.spec | 2 +- post.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/opi5-efi.spec b/opi5-efi.spec index 784c8c0..f805cbf 100644 --- a/opi5-efi.spec +++ b/opi5-efi.spec @@ -5,7 +5,7 @@ Name: opi5-efi Version: 0.0.4 -Release: 7%{?dist} +Release: 8%{?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 f1be168..2bbb0a6 100644 --- a/post.sh +++ b/post.sh @@ -23,4 +23,5 @@ echo "rootdev=${BOOT_PART}" >> "/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 "/boot/uInitrd-${UNAME_R}" "/boot/uInitrd" mkimage -C none -A arm -T script -d "/boot/efi/boot.cmd" "/boot/efi/boot.scr"