A box that has been running custom kernel/base suddenly showed
Before now, I was sure that it was running a custom kernel/base as "freebsd-update fetch install" command won't run on it. I had always had to make buildkernel etc to upgrade it.
When I saw the discrepancy, I ran mergemaster -iU, make delete-old/delete-old-libs. I changed /etc/motd to reflect 12.1-RELEASE. The command uname -a had been showing 12.0-RELEASE-p10 Generic at a time I had even set loader.conf to use MYKERNEL. Sadly, it was still showing Generic at a time I restarted and ensured the OS use MYKERNEL when booting.
Moving forward, I tried "freebsd-update fetch install" and the OS started downloading the updates/patches. It stopped at some point and since then no executable works. They are show bus error (core dumped).
I have tried "ldconfig -r /lib /usr/lib..." but no lock. The /rescue/ dir contains fewer statically linked exec to fix the OS. The commands in it work e.g. zpool except sh, which also breaks with "bus error (core dumped)" at some point.
To make matter worse, the /usr/src is empty, SVN checkout throws "bus error (core dumped)", ssh too and many more. At few times, I had copied libkvm.so and libbz.so from /usr/obj/src/amd64.amd/... when the OS threw error "invalid file format" for those libs yet replacing them won't fix the error. It would rather produce "unsupported file format". freebsd-update rollback/fetch throws bus error too.
The PC boots up but no longer starts X.org i.e. GUI. And most commands now throw the bus error after logging in and running them.
I won't want to reinstall the OS; your suggestions would be appreciated
Code:
%freebsd-version -kur
12.0-RELEASE-p10
12.0-RELEASE-p10
12.1-RELEASE
Before now, I was sure that it was running a custom kernel/base as "freebsd-update fetch install" command won't run on it. I had always had to make buildkernel etc to upgrade it.
When I saw the discrepancy, I ran mergemaster -iU, make delete-old/delete-old-libs. I changed /etc/motd to reflect 12.1-RELEASE. The command uname -a had been showing 12.0-RELEASE-p10 Generic at a time I had even set loader.conf to use MYKERNEL. Sadly, it was still showing Generic at a time I restarted and ensured the OS use MYKERNEL when booting.
Moving forward, I tried "freebsd-update fetch install" and the OS started downloading the updates/patches. It stopped at some point and since then no executable works. They are show bus error (core dumped).
I have tried "ldconfig -r /lib /usr/lib..." but no lock. The /rescue/ dir contains fewer statically linked exec to fix the OS. The commands in it work e.g. zpool except sh, which also breaks with "bus error (core dumped)" at some point.
To make matter worse, the /usr/src is empty, SVN checkout throws "bus error (core dumped)", ssh too and many more. At few times, I had copied libkvm.so and libbz.so from /usr/obj/src/amd64.amd/... when the OS threw error "invalid file format" for those libs yet replacing them won't fix the error. It would rather produce "unsupported file format". freebsd-update rollback/fetch throws bus error too.
The PC boots up but no longer starts X.org i.e. GUI. And most commands now throw the bus error after logging in and running them.
I won't want to reinstall the OS; your suggestions would be appreciated