From nobody Tue Oct 25 23:06:51 2022 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MxndT60pmz4gHh7 for ; Tue, 25 Oct 2022 23:07:09 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MxndT0FnPz3rtJ for ; Tue, 25 Oct 2022 23:07:09 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-36a4b86a0abso114385837b3.7 for ; Tue, 25 Oct 2022 16:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=nm/V02W77c4GDeL3ZcPwuLCzMBy2rMpqflyvbAqARIM=; b=qxXz/Xndr2zbGmr+JfmHCaXVVdGLPwcIlORkun2P3bDehHsK8On9NZ8/dExmqSi2yd sXGbDdzWdeupx/42BAN6tC6u1faV4GaMU72h+a6kBpRnACTFmZh4Y4XMRsgj+wo92REM rNJTdNOg4MstfEjHwqTFwSJAGNe2tgc4PVxUNgTKueTpr6ANKflQkWquZfuEdUSIjdVr dzh68YUHkBIPxkh3jbadDlGz6MUL2DEVV/i2vvCxUx6qNMqLhMPzQGEKp0pd7d8+BWiJ 7I2ej3cn23m1MjLrCcrA/Y8A059qcOrL9r6nzYVdd9151XXzhIv49mrutBx0Lrjw1KB5 I3qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nm/V02W77c4GDeL3ZcPwuLCzMBy2rMpqflyvbAqARIM=; b=q0zZb/0I+zdYEMvCGB63yXkjMz4A2PAno2FMlAOoezwinjK+81JoICo7ZAD6+tqcua m/kwxWx3KGeLLp7GhKopn/3hJL6aNG4hDYRXL/Ap1yXB2wNwVUIvgzUvkC+/ud9tzRKx YlmYzhhLe5JQskhKR+OG3KhvUlLe0wzxRNoWypUHMXCPEeWtMsgULqxuVcK2C1e/zf+l fZEWxfhpXe8DdoXyGq9lpK/cDPSj7M2RhP5uWfHlCHeWLvsoAszKAcrQZujtMW9+8W5z ODHq1a2owrGir4Cci35Q/zeWIoPPcnwCrF9stMVRYioX69PBMqeF6NafA0Cru/Xi4kSk nDJA== X-Gm-Message-State: ACrzQf2lDaKFlpSJKRxNil0kJIHh+9yCJtWA1HyQJKdsCiOxNG1ZGBwu Bx0ecUijQPrJU5cb4jEuRSRNFvHVfb+PW6QNt1h99eoz3rQ= X-Google-Smtp-Source: AMsMyM7pi7O/QkumHaPQ+pD9E48pGyQrdhG3+8gBWy54pvSa908ryKMwwyTAgwD8dwYehHW4urUPciOWcWJPYY8v8Fw= X-Received: by 2002:a81:6fc3:0:b0:367:7833:3829 with SMTP id k186-20020a816fc3000000b0036778333829mr31096073ywc.251.1666739226799; Tue, 25 Oct 2022 16:07:06 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <20221025183601.1d7260b8.freebsd@edvax.de> In-Reply-To: From: Kevin Oberman Date: Tue, 25 Oct 2022 16:06:51 -0700 Message-ID: Subject: Re: Disaster recovery after panic while doing installworld To: Polytropon Cc: "freebsd-questions@freebsd.org" Content-Type: multipart/alternative; boundary="0000000000008bf32305ebe3f76a" X-Rspamd-Queue-Id: 4MxndT0FnPz3rtJ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="qxXz/Xnd"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::1135 as permitted sender) smtp.mailfrom=kob6558@gmail.com X-Spamd-Result: default: False [-3.70 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_LONG(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1135:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --0000000000008bf32305ebe3f76a Content-Type: text/plain; charset="UTF-8" On Tue, Oct 25, 2022 at 1:23 PM Kevin Oberman wrote: > On Tue, Oct 25, 2022 at 9:36 AM Polytropon 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
On Tue, Oct 25, 2022 at 1:23 PM= Kevin Oberman <rkoberman@gmail.c= om> 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=C2=A0 a live system from a main snapsh= ot, but I
> am uncertain of what environmental variables I will need to set to con= vince
> 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 g= et my system running, I will ask for a little more help.

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...

I had to define CC and LD to point at the righ= t 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 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.
=C2=A0
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 $MAKEOBJDIRPREFIX. Looks like a bug that is= inserting the additional /mnt. Is it somehow getting there from $DESTDIR?<= br>
--
= Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail:= rkoberman@gmail.c= om
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055= 683
--0000000000008bf32305ebe3f76a--