Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Oct 2022 13:23:23 -0700
From:      Kevin Oberman <rkoberman@gmail.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        "freebsd-questions@freebsd.org" <questions@freebsd.org>
Subject:   Re: Disaster recovery after panic while doing installworld
Message-ID:  <CAN6yY1snO-QKt-NVk15tpKTas4t%2BVTsdcguAUq9rwXAn87uGfA@mail.gmail.com>
In-Reply-To: <20221025183601.1d7260b8.freebsd@edvax.de>
References:  <CAN6yY1sHoL%2B-0OjgLev0H1pTfJ2=RZFDQWcic9yKnoJoD6ZWLQ@mail.gmail.com> <20221025183601.1d7260b8.freebsd@edvax.de>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Tue, Oct 25, 2022 at 9:36 AM Polytropon <freebsd@edvax.de> wrote:

> On Tue, 25 Oct 2022 09:27:36 -0700, Kevin Oberman wrote:
> > I hope to recover it by booting  a live system from a main snapshot, but
> I
> > am uncertain of what environmental variables I will need to set to
> convince
> > the system to make installworld from the /usr/obj on /mnt and install
> into
> > /mnt.
> >
> > Any suggestions?
>
> You can find details in "man 7 build"; probably the
> settings $MAKEOBJDIRPREFIX and $DESTDIR will be what
> you need, you'll find them in the ENVIRONMENT secion
> of the manpage.
>
>
> Good luck!
>
>
>
> --
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
>

Well, there is more required and, being anxious to get my system running, I
will ask for a little more help.

I tried defining DESTDIR and MAKEOBJDIRPREFIX and fired off a "make -C
/mnt/usr/src/ make installworld, but it failed instantly because it could
not find cc. Of course, there is no compiler on the install drive, so...

I had to define CC and LD to point at the right places, but then I get:
make[1]:"/mnt/usr/src/Makefile.inc1" line 106: A build is required first.
You may have the wrong MAKEOBJDIRPREFIX set. I set it to /mnt/usr/obj and
that is the proper directory. It contains only the directory 'usr', as I
would expect. So I am baffled. Any ideas on what the heck is missing. I'm
feeling a bit nauseous about now.

-- 
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
Using FreeBSD since 3.1

PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683

[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">On Tue, Oct 25, 2022 at 9:36 AM Polytropon &lt;<a href="mailto:freebsd@edvax.de">freebsd@edvax.de</a>&gt; wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 25 Oct 2022 09:27:36 -0700, Kevin Oberman wrote:<br>
&gt; I hope to recover it by booting  a live system from a main snapshot, but I<br>
&gt; am uncertain of what environmental variables I will need to set to convince<br>
&gt; the system to make installworld from the /usr/obj on /mnt and install into<br>
&gt; /mnt.<br>
&gt; <br>
&gt; Any suggestions?<br>
<br>
You can find details in &quot;man 7 build&quot;; probably the<br>
settings $MAKEOBJDIRPREFIX and $DESTDIR will be what<br>
you need, you&#39;ll find them in the ENVIRONMENT secion<br>
of the manpage.<br>
<br>
<br>
Good luck!<br>
<br>
<br>
<br>
-- <br>
Polytropon<br>
Magdeburg, Germany<br>
Happy FreeBSD user since 4.0<br>
Andra moi ennepe, Mousa, ...<br>
</blockquote></div><br clear="all"><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">Well, there is more required and, being anxious to get my system running, I will ask for a little more help.</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default"><br></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">I tried defining DESTDIR and MAKEOBJDIRPREFIX and fired off a &quot;make -C /mnt/usr/src/ make installworld, but it failed instantly because it could not find cc. Of course, there is no compiler on the install drive, so...</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default"><br></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">I had to define CC and LD to point at the right places, but then I get:</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">make[1]:&quot;/mnt/usr/src/Makefile.inc1&quot; line 106: A build is required first. You may have the wrong MAKEOBJDIRPREFIX set. I set it to /mnt/usr/obj and that is the proper directory. It contains only the directory &#39;usr&#39;, as I would expect. So I am baffled. Any ideas on what the heck is missing. I&#39;m feeling a bit nauseous about now.<br></div><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Kevin Oberman, Part time kid herder and retired Network Engineer<br>E-mail: <a href="mailto:rkoberman@gmail.com" target="_blank">rkoberman@gmail.com</a></div><div dir="ltr"><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">Using FreeBSD since 3.1</div><br></div><div>PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683</div></div></div></div></div></div></div></div></div>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1snO-QKt-NVk15tpKTas4t%2BVTsdcguAUq9rwXAn87uGfA>