do a symlink

This commit is contained in:
Pratham Patel 2023-10-08 16:23:41 +05:30
parent d8a4deedcf
commit 2741e6c60a
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
Name: opi5-efi Name: opi5-efi
Version: 0.0.4 Version: 0.0.4
Release: 8%{?dist} Release: 9%{?dist}
Summary: Necessary files for booting from vendor U-Boot on Orange Pi 5 Summary: Necessary files for booting from vendor U-Boot on Orange Pi 5
License: GPL License: GPL
Provides: %{name}-%{version} Provides: %{name}-%{version}

View File

@ -23,5 +23,5 @@ echo "rootdev=${BOOT_PART}" >> "/boot/efi/uEnv.txt"
sed -i "s/setenvrootdev/setenv rootdev \"${BOOT_PART}\"/" "/boot/efi/boot.cmd" 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}" 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" 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"