symlink /boot/uIinitrd

This commit is contained in:
Pratham Patel 2023-10-08 15:49:24 +05:30
parent 644f7e870a
commit d8a4deedcf
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -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}

View File

@ -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"