Over this cycle, installboot.c was extended to do the 'bootblock
installation' process itself.
src/distrib/loongson/ramdisk/install.md lost this:
-
- # Use cat below to avoid holes created by cp(1)
- if mount -t ext2fs /dev/${_disk}i /mnt2 &&
- mkdir -p /mnt2/boot &&
- cat /mnt/usr/mdec/boot > /mnt2/boot/boot &&
- { [[ $(sysctl -n hw.product) != Gdium ]] ||
- cp /mnt/bsd /mnt2/boot/bsd; }; then
- umount /mnt2
- return
+ if ! installboot -r /mnt ${1}; then
and the job is instead (written in C) performed by
src/usr.sbin/installboot/loongson_install.boot.c
I wonder if installboot is incorrect. Might need to look inside the
ext2fs partition. Another thing to do, is use the -v flag, to see what
is going on.
Additionally, I always get confused about which loongson model is which.
It is a mess, begging for deletion.