On Sun, Jun 25, 2017 at 04:21:16PM +0300, Konstantin Belousov wrote:
> ...
> > #cat /etc/src-env.conf 
> > WITH_META_MODE=yes
> 
> So can you _remove_ all kernel object files and rebuild anew with the
> clean build dir, please ?

OK; that seems to have resulted in a kernel that boots to multi-user
mode without incident:

FreeBSD freebeast.catwhisker.org 12.0-CURRENT FreeBSD 12.0-CURRENT #386  
r320324M/320326:1200035: Sun Jun 25 06:36:19 PDT 2017     
r...@freebeast.catwhisker.org:/common/S4/obj/usr/src/sys/GENERIC  amd64

To remove any possible ambiguity, here is what I did.  (Note that
head is on slice 4; recent stable/11 is on slice 1; when booted
from slice 1, slice 4's / is mounted on /S4.)
* Rebooted from slice 1 (stable/11).
* cd /S4/usr/obj
* cp -p usr/src/sys/GENERIC/version /tmp
* rm -fr usr/src/sys/GENERIC
* mkdir !$
* mv /tmp/version !$/
* cd /S4/boot
* cp -pr kernel.old kernel.save
* mv kernel{,.panic}
* mv kernel{.old,}
* Rebooted from slice 4 (head@r320307)
* setenv TMPDIR /tmp &&\
  id &&\
  mount &&\
  cd /usr/src &&\
  uname -a &&\
  date &&\
  make -j16 buildkernel &&\
  date &&\
  rm -fr /boot/modules.old &&\
  cp -pr /boot/modules{,.old} &&\
  make installkernel &&\
  date
* shutdown -r now
* Sent this message. :-)

Thanks!

Peace,
david

-- 
David H. Wolfskill                              da...@catwhisker.org
Trump (et al.): Hiding information doesn't prove its falsity.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

Attachment: signature.asc
Description: PGP signature

Reply via email to