On Wed, Mar 25, 2020 at 02:23:48PM +0000, Mikolaj Kucharski wrote:
> On Sat, Mar 21, 2020 at 08:04:35PM +0000, Mikolaj Kucharski wrote:
> > On Thu, Mar 19, 2020 at 08:08:10AM +0100, Antoine Jacoutot wrote:
> > > > - How do you handle kernel modifications via config(8) with kernel
> > > >   relinking in a more automated way?
> > > 
> > > $ cat /etc/rc.shutdown                                     
> > > printf 'disable ulpt\nq\n' | config -ef /bsd
> > > sha256 /bsd >/var/db/kernel.SHA256
> > 
> > Neat, simple and straightforward. I like it, thanks Antoine.
> 
> It has one disadvantage. It doesn't integrate well with sysupgrade(8)
> and need one additional reboot, to get desired kernel configuration. For
> me it's easy to forget this one additional reboot.
> 

Actually, not.
When rebooting the first time, use boot -c
Then disable ulpt
quit 

Which is what the above does for later reboots.
Which I am now thrilled to use for disable amdgpu.
I can now skip using boot -c

Boot -c is often used to enable or disable things to allow successful
booting at all.

-- 
Chris Bennett


Reply via email to