Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jan 2017 22:39:32 +0100
From:      "Hartmann, O." <ohartmann@walstatt.org>
To:        "Hartmann, O." <ohartmann@walstatt.org>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Help! Howto installworld crashed system with USB image?
Message-ID:  <20170117223932.1db135e8@hermann>
In-Reply-To: <20170117213005.0a4a3d2d@hermann>
References:  <20170117213005.0a4a3d2d@hermann>

next in thread | previous in thread | raw e-mail | index | archive | help
Within the past several hours, FreeBSD crashed due to serious bugs and
some boxes of ours hang with the uncomplete workaround with
EARLY_AP_STARTUP. During a recompilation and
installworld/installkernel, one of my workstations suddenly crashed and
spontaneously rebooted. After that, the loader complained about "not
kernel" and left me alone at the "OK " prompt of the bootloader.

After some fast investigations I realized, that except /bin/sh all
files on the SSD (Samsung 850 PRO, crashed kernel had NANDFS option
enabled as well as device nandfs, if this is of interest, but I doubt
it). Since the whole SSD is so far intact including the /usr/src
and /usr/obj and with only the binary and =C3=B6libraries (probably, not
confirmed) corrupt, I tried to rescue via using the most recent
12-CURRENT ISO FreeBSD USB image

FreeBSD-12.0-CURRENT-amd64-20170105-r311461-memstick.img

But I'm lost here! I mounted for convenience usr/obj and usr/src
onto /usr/obj and /usr/src respectively onto the USB mounted filesystem.

Everything else of the SSD is mounted onto /mnt.=20

I thought I could simply "bootstrap" an installworld with the toolchain
resident on /usr/obj, but I fail in a painful way.

cd /usr/src,
make DESTDIR/mnt installworld installkernel

bugs out with some mysterious error telling me to set COMPILER_TYPE=3D,
so I did set this variable to cc.

The result: I figured out that the USB image is one of the useless
minimalistic ones with no compiler aboard. Fine. No rescue, no cc, no
nothing.

I desperately need some advice in how I can perform installworld and
installkernel.

I have a customized /etc/src.conf and /etc/make.conf, so I guess I have
to set

ETCDIR=3D/mnt/etc

also. Since I use a different name of my kernel (not GENERIC), I also
need to set KERNCONF and KERNEL, so I guess, with KERNCONF in question,
since I have already a kernel ready to install.

But how can I delegate the installation procedure to use anything
from /usr/obj including the compiler?

Something has changed to the worse in FreeBSD! I remember that I had a
similar situation a while ago last year on 10 or 11-CURRENT, where a
crash destroyed libraries and I was capable of rescueing the system via
the USB image and installworld.=20

Either some great mind erased the necessary compiler from the (too)
minimalistic image, or something new has been introduced to perform a
rescue/standalone-bootstrap installation.=20

Either way, I would be really happy if someone could give me a hint how
to rescue the broken system.

Thanks in advance,

Oliver


p.s. I've already written another mail to the list with a more unclear
subject, I hope this subject makes it more clear and after the anger
has gone away, I think I can express the situation more clearly.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170117223932.1db135e8>