I would add:
else ERROR 'No partitions detected'
to the bottom of that as well. :)
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, June 24th, 2021 at 2:57 AM, Paul Dufresne via Freedos-devel
freedos-devel@lists.sourceforge.net wrote:
> I was thinking what a modern MBR should do and come to the following
> pseudo-code:
>
> If GPT exist
>
> If BIOS_Boot_Partition exist
>
> Give control to it (probably second stage GRUB)
>
> else if a GPT bootable partition exist
>
> Give control to it (could be many things)
>
> else Error 'No GPT bootable partition!'
>
> else (MBR partition)
>
> if an MBR bootable partition exist
>
> give control to it
>
> else ERROR 'No MBR bootable partition'
>
> I think in most cases, it would do the right thing.
>
> And could be better than most MBR already present.
>
> Not sure it could be coded in such a small place however.
>
> Freedos-devel mailing list
>
> Freedos-devel@lists.sourceforge.net
>
> https://lists.sourceforge.net/lists/listinfo/freedos-devel
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel