From nobody Tue Oct 25 20:23:23 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 4Mxk0r2QN5z4frx4 for ; Tue, 25 Oct 2022 20:23:40 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) (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 4Mxk0q2mM6z3Wb9 for ; Tue, 25 Oct 2022 20:23:39 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-333a4a5d495so126072677b3.10 for ; Tue, 25 Oct 2022 13:23:39 -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=qRb0az39MNQoMhKYJx59EneD7tXQ7wjPEbwlTa2zG54=; b=moJp6jq1acyDNnGypBp+BM1avztzzes4oM5qgwtdbbCTrPdkG0yoObzq3sIeiLsCYn n6vF4JXYk3XIC19706StgZhWiPTt85LrmC+yKZVO2/dW40Xt8RfSZlyRGdx0ICn3uitM SQh9FSxxDXMG+tpR7wVx94TzvtUG6FWAruTWzkx2veqfJ54p3Rrq2x6LSpPGfxN5jXQ7 igNER2QPV7r48alMgh9p8YZWN5WNYo6oogLs/l/B2OxF2v1PDacD8jSt/nR7M0pAp7pW dtVjkVRuvSmIMNdxedamSd2ZykCK6cCv3Q6dNflPkFc0D8YoyU3Z+1FwA/le4azK/Nkr Xgbw== 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=qRb0az39MNQoMhKYJx59EneD7tXQ7wjPEbwlTa2zG54=; b=ciSVHIoWqdkDF+W7lq7mhT8pxUnrFP5/cQc5iWRDuk8Ym5I0SfDVJUIjIwUj7DFQ82 MecD0MWWR/wDVhvrVIHqMvLoBV7SgjQOiSl9WLhzcbeheh7B8DqmLgrT9njHB13mQyVE UTGmwOtVNLw+G0IF8ujMNYluU95flAvbYiScPT+8RoHfzvLaQjxmOeJ2dKDpr7ACr8Xg fq8WclaOp2yEQ2CCB6IciNJpdUdkGBuKk5II5Ku9ayIjt9A+Fzn41wRiCszq6YLzLmLQ AioZFyq7UVRGADAEfpqoWaFSBcD/Xm14AzogDqyP+GEUA8my6en5TgjzfvOlC7qidEBz meZg== X-Gm-Message-State: ACrzQf0p+Jbh2yeYdbTloCL6HEw7oEF3bLMkffY5O4PaTQLcmSFXyrc+ BNU+dHpOmSmXMWeRsZ9f2YzTKRr3yUd6fYwsaINro4IS X-Google-Smtp-Source: AMsMyM4qZ9I7W/aZccd6a0HjacKkVGACelQzc0nkSLOCYEPYKzSE8asPZGFfsaYPKy4PjxUXVyN0ZcKRunOoYRynjYQ= X-Received: by 2002:a0d:dd03:0:b0:36f:e08c:530e with SMTP id g3-20020a0ddd03000000b0036fe08c530emr396527ywe.372.1666729418521; Tue, 25 Oct 2022 13:23:38 -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: <20221025183601.1d7260b8.freebsd@edvax.de> From: Kevin Oberman Date: Tue, 25 Oct 2022 13:23:23 -0700 Message-ID: Subject: Re: Disaster recovery after panic while doing installworld To: Polytropon Cc: "freebsd-questions@freebsd.org" Content-Type: multipart/alternative; boundary="000000000000ed80d405ebe1aeed" X-Rspamd-Queue-Id: 4Mxk0q2mM6z3Wb9 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=moJp6jq1; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::112a as permitted sender) smtp.mailfrom=kob6558@gmail.com X-Spamd-Result: default: False [-3.69 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.998]; NEURAL_HAM_SHORT(-0.99)[-0.992]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[questions@freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::112a:from]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; RCVD_COUNT_TWO(0.00)[2]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; DKIM_TRACE(0.00)[gmail.com:+]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCPT_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --000000000000ed80d405ebe1aeed Content-Type: text/plain; charset="UTF-8" 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. -- 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
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 get my system running, I will ask for a little more = help.

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

= 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 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.
--
Kevin Oberman, P= art time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
Using FreeBSD since 3.1

PGP Fing= erprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
--000000000000ed80d405ebe1aeed--