symlink /boot/uIinitrd
This commit is contained in:
parent
644f7e870a
commit
d8a4deedcf
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name: opi5-efi
|
Name: opi5-efi
|
||||||
Version: 0.0.4
|
Version: 0.0.4
|
||||||
Release: 7%{?dist}
|
Release: 8%{?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}
|
||||||
|
1
post.sh
1
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"
|
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"
|
||||||
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user