diff --git a/tools-image/prepare_arm_images.sh b/tools-image/prepare_arm_images.sh index 6528b86..d96eea6 100755 --- a/tools-image/prepare_arm_images.sh +++ b/tools-image/prepare_arm_images.sh @@ -33,6 +33,14 @@ ensure_dir_structure() { done } +mkdir -p $WORKDIR/tmpefi + +# Create the EFI partition FAT16 and include the EFI image and a basic grub.cfg +truncate -s $((20*1024*1024)) bootloader/efi.img +cp -rfv /arm/grub/efi/* $WORKDIR/tmpefi +mkfs.fat -F16 -n COS_GRUB bootloader/efi.img +mcopy -s -i bootloader/efi.img $WORKDIR/tmpefi/EFI ::EFI + mkdir -p ${STATEDIR}/cOS dd if=/dev/zero of=${STATEDIR}/cOS/active.img bs=1M count=$default_active_size