I was not too surprised when nbmakefs complained that the file system
required size of 1515634688 (1450 MB) exceeded the configured size of
1488977920 (1420 MB) - an increase of 30 MB.
So I changed distrib/amd64/installimage/Makefile to change INSTIMAGEMB
from 1550 to 1580 (an increase of 30 MB).
Now, I'm getting an error from nbgpt which I don't know how to resolve:
...
rm -f work.efi
/build/netbsd-local/tools/x86_64/amd64/bin/nbmakefs -M 128m -m 128m
-B 1234 -t msdos -o F=32,c=1 work.efi work.efidir
Creating `work.efi'
work.efi: 258078 sectors in 258078 FAT32 clusters (512 bytes/cluster)
MBR type: 11
bps=512 spc=1 res=32 nft=2 mid=0xf0 spt=63 hds=255 hid=0 bsec=262144
bspf=2017 rdcl=2 infs=1 bkbs=2
Populating `work.efi'
Image `work.efi' complete
create GPT image...
dd if=work.mbr of=work.gpt skip=$((3235840 - 2048)) count=2048
0+0 records in
0+0 records out
0 bytes transferred in 0.001 secs (0 bytes/sec)
cat work.mbr.truncated work.efi imgroot.fs work.gpt > work.img
/build/netbsd-local/tools/x86_64/amd64/bin/nbgpt work.img biosboot -i 2
-c
/build/netbsd-local/obj/amd64/distrib/amd64/installimage/work/usr/mdec/gptmbr.bin
nbgpt: work.img: No secondary GPT header; run recover
*** Failed target: NetBSD-9.99.77-amd64-install.img
Any clues on how to fix this?