From nobody Thu May 12 07:12:59 2022 X-Original-To: freebsd-current@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 299971AE38BB for ; Thu, 12 May 2022 07:13:17 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (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 4KzNKS3WpRz3D0D for ; Thu, 12 May 2022 07:13:16 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by mail-io1-xd33.google.com with SMTP id z26so4385322iot.8 for ; Thu, 12 May 2022 00:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=c8l8MfRRpkQi3FUul1be/qcLyYMoKOHAE6Za6ceXvcQ=; b=ctPNIDO5bH3UElLiGZ+XnYV3t2muIuBN911xdGSHfeA6YLOQdxdn4qTTLSFQyNQSob PdnvifOuRof91P2csETbrq5mIDK782lSvj8thKUbZbCz0MuNjivzY4LH1nEPxGPqu0AT 1d5qCBW7ctwcwuJah3Xfc59o1a1RmigSWU9Yj0121bjFujFGfq7QJtxXDHL0ofFqEVz1 6ZsiHoWjXsjccxqj4/jBFDxP70GqtJjfyM+h7q2RsbyigDZuAPrS5aUMgG+RXzmsBt+D wrdPD2BbzouVWZHaCtfHZwHQ78WYTFQmc9SDPwCOnq5gYx77B1fGKX4bjZGdyFkjgAej AV1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=c8l8MfRRpkQi3FUul1be/qcLyYMoKOHAE6Za6ceXvcQ=; b=ToKJern2uresxsnMjRibhWohtxp+ElbrpgT1BtRT8+1Rr9t+NoL655n6q9fuWmykNO yz4YkkFJBRgQkKH3JiwT6Y0GKfDyhYmKXjiQiJbhDne1X/3Y1kjZDxLG2BZr7NoKt2Tk MLLaBblG89QBW+D4Zbwmm2ydRnov3JurRZRy0kmLMNkb7Lm/y20PHWzrvUxWhURMhbE5 W8/DSKlMcs7nX8vTIgjX4S5444Nlx0va3oFxZ+V2F1b6kfDN3fnT7mJKptKHvdHnrVNH V/O/nWmtZj795p3TL9XsnylqdJpo1iU3gH6B54oFCHsWF+T9YCXDbNKdB9X1L874pOJ5 yQrA== X-Gm-Message-State: AOAM532wVWd2JuWfM8hrFLka5bt+faBNgXaQ19r6/3HSeG/edv0v2vdh YSYiF+ky1R8eWvGFTu1TNd10VDzXcyvK7EDktGRMTJTUx1iJuTM8 X-Google-Smtp-Source: ABdhPJw/M2dXs6fXe5YMssndX3AQJIHUrKFLsgbl2Y9/aSXzLG8GTAebrYyLze6CcKsstXGZ6JECPF+mLaThcGAbsbw= X-Received: by 2002:a6b:c808:0:b0:657:c3ee:623c with SMTP id y8-20020a6bc808000000b00657c3ee623cmr12586975iof.48.1652339590041; Thu, 12 May 2022 00:13:10 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: <481e0739-bdc4-4ce6-a856-a80cf5294d03@www.fastmail.com> <5fff8840-6f1e-4edd-8ddf-2728227c8818@www.fastmail.com> In-Reply-To: <5fff8840-6f1e-4edd-8ddf-2728227c8818@www.fastmail.com> From: Michael Schuster Date: Thu, 12 May 2022 09:12:59 +0200 Message-ID: Subject: Re: FreeBSD, boot environments and /dev To: Dave Cottlehuber Cc: freebsd-current Content-Type: multipart/alternative; boundary="0000000000005017b305decb4a7f" X-Rspamd-Queue-Id: 4KzNKS3WpRz3D0D X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=ctPNIDO5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of michaelsprivate@gmail.com designates 2607:f8b0:4864:20::d33 as permitted sender) smtp.mailfrom=michaelsprivate@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d33:from]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current]; NEURAL_HAM_SHORT(-1.00)[-0.997]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N --0000000000005017b305decb4a7f Content-Type: text/plain; charset="UTF-8" On Wed, May 11, 2022 at 11:38 PM Dave Cottlehuber wrote: > On Wed, 11 May 2022, at 14:58, Michael Schuster wrote: > > I then created a new BE, mounted it on /mnt, removed /mnt/dev/* (only > > regular files and empty directories). Booting into that BE didn't work > > either, I got errors about missing "/dev/" files (can't recall the > > exact names). > > > > What do you guys (plural ;-)) think? > Hi Dave, thx for your perseverance :-) I have (at least) one question for you before I attempt this: > this works for me: > > # zfs create -o canmount=noauto -o mountpoint=/ zroot/ROOT/vanilla > # bectl mount vanilla /mnt > # cd /some/path/to/sets/ > # tar xzpf ./kernel.txz -C /mnt/ > # tar xzpf ./base.txz -C /mnt/ > showing my ignorance here: where do I get these .txz files? # tzsetup -C /mnt UTC > # pwd_mkdb -p -d /mnt/etc /mnt/etc/master.passwd > # ln -s /usr/home /mnt/home > ### copy in & amend /etc/fstab /etc/rc.conf /boot/loader.conf as required > should devfs be in /etc/fstab? in my current BE, it isn't ... if so: do you have an example of such a line? In the instances I looked up, I wasn't quite able to make it work (but perhaps that's a dead end anyway). # bectl activate -t vanilla > does that ("activate -t") work on UEFI systems? The last time I used it (at least a year ago), it wasn't. Thx Michael # reboot > > try that and let us know what, if any, errors you get? > > A+ > Dave > -- Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion' --0000000000005017b305decb4a7f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed, May = 11, 2022 at 11:38 PM Dave Cottlehuber <dch@skunkwerks.at> wrote:
On Wed, 11 May 2022, at 14:58, Michael Schuster wrote:=
> I then created a new BE, mounted it on /mnt, removed /mnt/dev/* (only<= br> > regular files and empty directories). Booting into that BE didn't = work
> either, I got errors about missing "/dev/" files (can't = recall the
> exact names).
>
> What do you guys (plural ;-)) think?

Hi Dave,
thx for your perseverance= :-)

I have (at leas= t) one question for you before I attempt this:
this works for me:

# zfs create -o canmount=3Dnoauto -o mountpoint=3D/ zroot/ROOT/vanilla
# bectl mount vanilla /mnt
# cd /some/path/to/sets/
# tar xzpf ./kernel.txz -C /mnt/
# tar xzpf ./base.txz -C /mnt/

showing my ignorance here: where do I get these .txz files?

# tzsetup -C /mnt UTC
# pwd_mkdb -p -d /mnt/etc /mnt/etc/master.passwd
# ln -s /usr/home /mnt/home
### copy in & amend /etc/fstab /etc/rc.conf /boot/loader.conf as requir= ed

should devfs be in /et= c/fstab? in my current BE, it isn't ...=C2=A0
i= f so: do you have an example of such a line? In the instances I looked up, = I wasn't quite able to make it work (but perhaps that's a dead end = anyway).

# bectl activate -t vanilla

does that ("activate -t") work on UEFI systems? The last time = I used it (at least a year ago), it wasn't.
Thx
Michael

# reboot

try that and let us know what, if any, errors you get?

A+
Dave


--
recursion, n: see 'rec= ursion'
--0000000000005017b305decb4a7f--