29.03.2025 18:51, Mark Kettenis пишет:
>> From: "Theo de Raadt" <dera...@openbsd.org>
>> Date: Sat, 29 Mar 2025 09:35:34 -0600
>>
>> Stuart Henderson <s...@spacehopper.org> wrote:
>>
>>> On 2025/03/29 14:30, Klemens Nanni wrote:
>>>> 23.03.2025 19:30, Sven Wolf пишет:
>>>>> since some weeks, after I run 'sysupgrade -n -s -k' and installed the 
>>>>> current snapshot, the boot order in UEFI gets changed.
>>>>
>>>> This is intended, OpenBSD attempts to ensure that it is booted by default.
>>>>
>>>>> I there a way to disable this behavior?
>>>>
>>>> No.
>>>
>>> Probably makes sense for install but this seems a pretty bad idea after an
>>> update.
>>
>> Yeah, that's possibly the right conclusion.  A conditional in the
>> script might be required.
> 
> The solution I had in mind was to do the following:
> 
> * If the OpenBSD Boot#### boot option doesn't exist, create it and
>   prepend it to the BootOrder list.
> 
> * If the OpenBSD Boot#### boot option exists, do nothing (and leave
>   BootOrder alone).

That would default to OpenBSD once and then leave it alone for users to reorder,
which seems like a better approach for both sides.

> 
> If we do this, we may want to set the BootNext variable such that a
> reboot boots OpenBSD and finishes the install.

On install OpenBSD's Boot#### is not expected to be there, but if it is, this
would ensure we follow through without messing with existing order.

Upgrades should do this either way... any reason not to always set BootNext?

Reply via email to