mkimage-profiles/features.in/aarch64-dbm/image-scripts.d/98-dbm-startup-nsh
Dmitriy Terekhin 61442dfbfc aarch64-dbm: added 98-dbm-startup-nsh
The tar2fs script writes the contents of the
/boot/efi directory to a disk image partition for EFI.
Place the scripts executed by EFI Shell in /boot/efi
2020-05-22 13:34:34 +07:00

21 lines
643 B
Bash
Executable File

#!/bin/sh
# The tar2fs script writes the contents of the /boot/efi directory
# to a disk image partition for EFI.
# Place the scripts executed by EFI Shell in /boot/efi
mkdir -p /boot/efi
# Script startup.nsh to boot with GRUB2 by default
cat > /boot/efi/startup.nsh << EOF
\EFI\BOOT\BOOTAA64.EFI
EOF
# The efidrvext.nsh script can be run manually from the EFI Shell
# to boot using the ext2, ext3, ext4 driver for EFI
cat > /boot/efi/efidrvext.nsh << EOF
load fs0:\efi\drivers\ext2_aa64.efi
map -r
FS1:\boot\vmlinuz root=/dev/sda2 ro console=ttyS0,115200 video=HDMI-A-1:D fbcon=map:0 initrd=/boot/initrd.img dtb=/boot/dtb/bm-bfkm.dtb
EOF