Date: Tue, 25 Oct 2022 16:06:51 -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: <CAN6yY1uLx7aoWGiY6RvzZ=U0B1H-TiGfp55X0LpEzCAw%2BX4Gjw@mail.gmail.com> In-Reply-To: <CAN6yY1snO-QKt-NVk15tpKTas4t%2BVTsdcguAUq9rwXAn87uGfA@mail.gmail.com> References: <CAN6yY1sHoL%2B-0OjgLev0H1pTfJ2=RZFDQWcic9yKnoJoD6ZWLQ@mail.gmail.com> <20221025183601.1d7260b8.freebsd@edvax.de> <CAN6yY1snO-QKt-NVk15tpKTas4t%2BVTsdcguAUq9rwXAn87uGfA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000008bf32305ebe3f76a Content-Type: text/plain; charset="UTF-8" On Tue, Oct 25, 2022 at 1:23 PM Kevin Oberman <rkoberman@gmail.com> wrote: > 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. > Slow progress, but I seem to be at a dead end in Makefile.inc1 at line 104. It tries to load toolchain_metadata from $OBJTOP, but it is defined not as "/mnt/usr/obj/usr/src/amd64.amd64", but as "/mnt/usr/obj/mnt/usr/src/amd64.amd64". MAKEOBJDIRPREFIX is "/mnt/usr/obj". I have tried figuring out the makefiles, but can't understand how $OBJTOP is created from $MAKEOBJDIRPREFIX. Looks like a bug that is inserting the additional /mnt. Is it somehow getting there from $DESTDIR? -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 --0000000000008bf32305ebe3f76a 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 1:23 PM= Kevin Oberman <<a href=3D"mailto:rkoberman@gmail.com">rkoberman@gmail.c= om</a>> wrote:<br></div></div><div class=3D"gmail_quote"><blockquote cla= ss=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid = rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><div s= tyle=3D"font-family:tahoma,sans-serif;font-size:small">On Tue, Oct 25, 2022= at 9:36 AM Polytropon <<a href=3D"mailto:freebsd@edvax.de" target=3D"_b= lank">freebsd@edvax.de</a>> wrote:<br></div></div><div class=3D"gmail_qu= ote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bo= rder-left:1px solid rgb(204,204,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">Well, there is more required and, being anxious to g= et my system running, I will ask for a little more help.</div><div style=3D= "font-family:tahoma,sans-serif;font-size:small"><br></div><div style=3D"fon= t-family:tahoma,sans-serif;font-size:small">I tried defining DESTDIR and MA= KEOBJDIRPREFIX and fired off a "make -C /mnt/usr/src/ make installworl= d, but it failed instantly because it could not find cc. Of course, there i= s no compiler on the install drive, so...</div><div style=3D"font-family:ta= homa,sans-serif;font-size:small"><br></div><div style=3D"font-family:tahoma= ,sans-serif;font-size:small">I had to define CC and LD to point at the righ= t places, but then I get:</div><div style=3D"font-family:tahoma,sans-serif;= font-size:small">make[1]:"/mnt/usr/src/Makefile.inc1" line 106: A= build is required first. You may have the wrong MAKEOBJDIRPREFIX set. I se= t 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.<br></di= v></div></blockquote><div>=C2=A0</div></div><div style=3D"font-family:tahom= a,sans-serif;font-size:small" class=3D"gmail_default">Slow progress, but I = seem to be at a dead end in Makefile.inc1 at line 104. It tries to load too= lchain_metadata from $OBJTOP, but it is defined not as "/mnt/usr/obj/u= sr/src/amd64.amd64", but as "/mnt/usr/obj/mnt/usr/src/amd64.amd64= ". MAKEOBJDIRPREFIX is "/mnt/usr/obj". I have tried figuring= out the makefiles, but can't understand how $OBJTOP is created from <s= pan class=3D"gmail-LI gmail-ng">$MAKEOBJDIRPREFIX. Looks like a bug that is= inserting the additional /mnt. Is it somehow getting there from $DESTDIR?<= br></span></div>-- <br><div dir=3D"ltr" class=3D"gmail_signature"><div dir= =3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr">= Kevin Oberman, Part time kid herder and retired Network Engineer<br>E-mail:= <a href=3D"mailto:rkoberman@gmail.com" target=3D"_blank">rkoberman@gmail.c= om</a><br></div><div>PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055= 683</div></div></div></div></div></div></div></div></div> --0000000000008bf32305ebe3f76a--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1uLx7aoWGiY6RvzZ=U0B1H-TiGfp55X0LpEzCAw%2BX4Gjw>