[OpenBIOS] [PATCH] SPARC32: add disk:d slice to bootpath when booting from disk

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Sun Jul 3 18:21:12 CEST 2016


On 01/07/16 17:34, Mark Cave-Ayland wrote:

> Solaris 9 installs its bootloader into the slice rather than the disk, so
> add disk:d to the disk bootpath to enable automatic booting in this case.
> 
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
> ---
>  openbios-devel/arch/sparc32/openbios.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/openbios-devel/arch/sparc32/openbios.c b/openbios-devel/arch/sparc32/openbios.c
> index 6f4ee45..a58b3cd 100644
> --- a/openbios-devel/arch/sparc32/openbios.c
> +++ b/openbios-devel/arch/sparc32/openbios.c
> @@ -897,7 +897,7 @@ arch_init( void )
>  		push_str("floppy");
>  		break;
>  	case 'c':
> -		push_str("disk");
> +		push_str("disk:d disk");
>  		break;
>  	default:
>  	case 'd':
> 

Actually it seems this is wrong if you allow Solaris 9 to automatically
partition the disk itself - in this case the installer sets the swap
partition to be the first physical slice whilst the root partition is
the first logical slice. This suggests the correct behaviour is to
ensure that we try and boot from the first logical slice and then fall
back to the whole disk as before. Revised patch coming up shortly.


ATB,

Mark.




More information about the OpenBIOS mailing list