email@example.com > sed in <b9duik$88b$> firstname.lastname@example.org> >:
You have to use physical floppy, at least up until 6.2.
Investigating further, dinit (6.2) seems to clobber geometry info
at the top of the PBR (offset 0xe-0x10) no matter what
when manipulating file images.
It will make some devctl() to get the device geometry, and since the
file image is on a hard disk, that is the underlying device that is
used to provide the values. So, yes, making a floppy image in this
manner will end up patching the hard geometry into the loader.
I thought using /boot/sys/ipl-diskpc2 (no -flop; extended INT 13) will
It (dinit, dloader, etc) will still patch based on who/what is hosting
the image file (typically you are diniting-in-place).
The suggested workaround will be
- Use a real floppy, or
- After dinit, overwrite the bootsector from a real floppy, i.e
These sound good. I’m trying to get some time to look into dinit,
and will see about adding some geometry overrides to it (like we
now have -D to set BIOS drive number) …