From nobody Fri Jul 19 11:11:48 2024 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WQRp54Ly8z5RStW for ; Fri, 19 Jul 2024 11:11:57 +0000 (UTC) (envelope-from SRS0=Jo8T=OT=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WQRp50wDJz4VSp; Fri, 19 Jul 2024 11:11:57 +0000 (UTC) (envelope-from SRS0=Jo8T=OT=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; none Date: Fri, 19 Jul 2024 13:11:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1721387509; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lrnKlT6RonewdtegL1oHmJGUsM9GTNNbe6oalKBHSc4=; b=Kt+CX90xmiv+wPnh9TSKsm6umt5xhqk1dFg0WM8TaIOt1e6/zrhrFzd2i4kiUXoQ5K+tVf vnly/viiGyPpSYScU/Wpb08EjKpHYgt88QgpPKnM78lxd5G0gn59Z3M/g6VsQdKJV9j7RB RxuSnBWnlhAbybfEAZRVbbQtF7Ref+xIGia3EsrkAVYfsEK0zTagX0N5re2UnuiRb0n+BJ 1TVE8u98UDIIDuOW46pbej1iK8LV24jW2zW2i/bZzwaB05H2zHgW+xAb2KjchWIlQlgIon 6jhsEBb+8wv+ku26j9A94q2asuY9BTDUBeCHRUAYdurCx6LsbZzjK8zNKLJ7xg== From: Ronald Klop To: Gareth de Vaux Cc: freebsd-stable@freebsd.org, Zhenlei Huang Message-ID: <390734156.4694.1721387508471@localhost> In-Reply-To: References: <01D917DB-7E47-46D7-AD22-AD09C4F89A96@FreeBSD.org> Subject: Re: nextboot warns it won't reset List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4693_1893752057.1721387508400" X-Mailer: Realworks (711.17) Importance: Normal X-Priority: 3 (Normal) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL] X-Rspamd-Queue-Id: 4WQRp50wDJz4VSp ------=_Part_4693_1893752057.1721387508400 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I think you don't need nextboot for what you want to do as long as you have console access to the machine. If you have console access you can interrupt the boot loader and choose another kernel to boot. It is possible to install multiple kernels next to each. Default kernel: /boot/kernel/kernel make installkernel will move the current kernel to /boot/kernel.old/kernel before installing the new one. You can add kernels yourself. I see my raspberry pi still has /boot/kernel.14.0/kernel although I don't use that anymore it was probably used for testing a while ago. So just copy your new testkernel to something like /boot/testkernel/kernel together with all the other modules in that directory. And select that kernel on boot. It is documented here: https://docs.freebsd.org/en/books/handbook/boot/#boot-loader Hope this helps. Regards, Ronald. Van: Gareth de Vaux Datum: vrijdag, 19 juli 2024 12:35 Aan: freebsd-stable@freebsd.org CC: Zhenlei Huang Onderwerp: Re: nextboot warns it won't reset > > On Fri 2024-07-19 (09:10), Zhenlei Huang wrote: > > > This's on a ZFS zroot 12.4-STABLE system. > > > > You're encouraged to upgrade to supported releases ;) > > Sure, I'm busy upgrading to 13 and in need of a testkernel which was giving errors. > > > > That is implementation specific. Normally you can ignore the warning, unless you have trouble booting > > the kernel. > > Trouble booting is presumably the main use case of nextboot, so nextboot is not adding any > functionality in this situation, only complicating things, so I should 'nextboot -D' and > take my chances manually. > > Many thanks. > > > > ------=_Part_4693_1893752057.1721387508400 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I think you don't need nextboot for what you want to do as long as you have console access to the machine.

If you have console access you can interrupt the boot loader and choose another kernel to boot.

It is possible to install multiple kernels next to each.

Default kernel: /boot/kernel/kernel
make installkernel will move the current kernel to /boot/kernel.old/kernel before installing the new one.
You can add kernels yourself. I see my raspberry pi still has /boot/kernel.14.0/kernel although I don't use that anymore it was probably used for testing a while ago.

So just copy your new testkernel to something like /boot/testkernel/kernel together with all the other modules in that directory.
And select that kernel on boot.

It is documented here: https://docs.freebsd.org/en/books/handbook/boot/#boot-loader

Hope this helps.

Regards,
Ronald.

 

Van: Gareth de Vaux <stable@lordcow.org>
Datum: vrijdag, 19 juli 2024 12:35
Aan: freebsd-stable@freebsd.org
CC: Zhenlei Huang <zlei@freebsd.org>
Onderwerp: Re: nextboot warns it won't reset

On Fri 2024-07-19 (09:10), Zhenlei Huang wrote:
> > This's on a ZFS zroot 12.4-STABLE system.
>
> You're encouraged to upgrade to supported releases ;)

Sure, I'm busy upgrading to 13 and in need of a testkernel which was giving errors.


> That is implementation specific. Normally you can ignore the warning, unless you have trouble booting
> the kernel.

Trouble booting is presumably the main use case of nextboot, so nextboot is not adding any
functionality in this situation, only complicating things, so I should 'nextboot -D' and
take my chances manually.

Many thanks.
 


  ------=_Part_4693_1893752057.1721387508400--