mirror of
https://github.com/kairos-io/osbuilder.git
synced 2025-09-09 03:01:47 +00:00
Build also efi.img
This commit is contained in:
@@ -33,6 +33,14 @@ ensure_dir_structure() {
|
|||||||
done
|
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
|
mkdir -p ${STATEDIR}/cOS
|
||||||
|
|
||||||
dd if=/dev/zero of=${STATEDIR}/cOS/active.img bs=1M count=$default_active_size
|
dd if=/dev/zero of=${STATEDIR}/cOS/active.img bs=1M count=$default_active_size
|
||||||
|
Reference in New Issue
Block a user