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>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000ed80d405ebe1aeed Content-Type: text/plain; charset="UTF-8" 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 --000000000000ed80d405ebe1aeed Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:tahoma,sans-serif;font-size:small">On Tue, Oct 25, 2022 at 9:36 AM= Polytropon <<a href=3D"mailto:freebsd@edvax.de">freebsd@edvax.de</a>>= ; wrote:<br></div></div><div class=3D"gmail_quote"><blockquote class=3D"gma= il_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,2= 04,204);padding-left:1ex">On Tue, 25 Oct 2022 09:27:36 -0700, Kevin Oberman= wrote:<br> > I hope to recover it by booting=C2=A0 a live system from a main snapsh= ot, but I<br> > am uncertain of what environmental variables I will need to set to con= vince<br> > the system to make installworld from the /usr/obj on /mnt and install = into<br> > /mnt.<br> > <br> > Any suggestions?<br> <br> You can find details in "man 7 build"; probably the<br> settings $MAKEOBJDIRPREFIX and $DESTDIR will be what<br> you need, you'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=3D"all"><div style=3D"font-family:tahoma,sans-= serif;font-size:small" class=3D"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=3D"font-family:tahoma,sans-serif;font-size:small" cla= ss=3D"gmail_default"><br></div><div style=3D"font-family:tahoma,sans-serif;= font-size:small" class=3D"gmail_default">I tried defining DESTDIR and MAKEO= BJDIRPREFIX 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 n= o compiler on the install drive, so...</div><div style=3D"font-family:tahom= a,sans-serif;font-size:small" class=3D"gmail_default"><br></div><div style= =3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default">= I had to define CC and LD to point at the right places, but then I get:</di= v><div style=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gma= il_default">make[1]:"/mnt/usr/src/Makefile.inc1" line 106: A buil= d 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 dire= ctory '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.<br></div><br= >-- <br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div><d= iv dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr">Kevin Oberman, P= art time kid herder and retired Network Engineer<br>E-mail: <a href=3D"mail= to:rkoberman@gmail.com" target=3D"_blank">rkoberman@gmail.com</a></div><div= dir=3D"ltr"><div style=3D"font-family:tahoma,sans-serif;font-size:small" c= lass=3D"gmail_default">Using FreeBSD since 3.1</div><br></div><div>PGP Fing= erprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683</div></div></div></div></= div></div></div></div></div> --000000000000ed80d405ebe1aeed--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1snO-QKt-NVk15tpKTas4t%2BVTsdcguAUq9rwXAn87uGfA>