Dear @misc,

This is partly a follow-up from my previous email about the Macbook boot issues, but I thought I would ask in a separate email because the question is less machine specific:

I’d like to automate the process of patching and installing a newly compiled kernel after running `sysupgrade`, so as to avoid having to wait 4+ hours each time I install a new version.

I can’t figure out how to do it. Here’s what I tried:

- fetch latest sources, apply my changes
- `# make obj; make config; make`for ` /sys/arch/amd64/compile/{RAMDISK,GENERIC,GENERIC.MP} - `install` the new bsd.rd as bsd.patched and {bsd,bsd.mp} to `/home/_sysupgrade`
- reboot
- at boot prompt boot bsd.patched

But this doesn’t work. Starting bsd.patched just keeps rebooting and if I boot bsd.upgrade the newly compiled files don’t get installed on upgrade, so I am back with the original 2-hour boot bug. I am wondering whether I should be copying the custom kernel files elsewhere, not to the root of /home/_sysupgrade or whether I would need a custom bsd.upgrade?

What would be the correct way to swap out the kernel for automatic installation on each upgrade?

Thanks,

rqm

Reply via email to