From nobody Sat May 14 19:40:56 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 D681E1AD8DAB for ; Sat, 14 May 2022 19:41:14 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) (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 4L0wqZ07c1z3wKG for ; Sat, 14 May 2022 19:41:13 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by mail-io1-xd35.google.com with SMTP id z26so12141733iot.8 for ; Sat, 14 May 2022 12:41:13 -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=Yt+1SqoRFww3UBd3URAUnB9cjKwKNyQxJu/h/kD2fmg=; b=TG4Lx1Oah+SGYkwhgxhThGnJJsWJuRwPVymvD3FNbaTlX12YGziOm5Jxze1JbZq2Uf b6K5klfifjS54rCmxX3o2GGnc/JYCPXyyUppdhnNsO5IT1uET+oPBwb0sje0hpjrS1eU a5M+oZvl9TR4t/BG6q4xmWl66nvJI2OZp6GlXfDcm1dbcDkZm9u/9ISAfdrDYIgJa7hJ ejGdC1+kPrQBHdQaWgiVevN7ZMwJ0UTfjjOhVonE8Hm3fqomZFHTBU5Xun5LiOXKcTI/ Qv9/atC8id43TyjxWj1NfAZS4+PHDgxnYs7h7dZJKBOAymPHu/jOqZwvTZalRd2XfDBe zYPA== 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=Yt+1SqoRFww3UBd3URAUnB9cjKwKNyQxJu/h/kD2fmg=; b=4ZFGLKmJhqVkgTUfPoFcpeb5ekk8N+tlnNtE/wcvfRk4Kix6dzRlFWyWGOIhWmDn8s PXNaflIVCRXmfd/IZAnF91yNAm+1Ts0hd7zWVIwskLQ945rq0krSbnpV5wyK++mfWVBW 0TyUzbTm2SpmR4hi1O2HfALxUQzID1IK9V/OxHNuhVxmZse4p5ie6tdPIXdnAriGURU/ HcAfxsPH+pqXIpUDVPnS2UskGOF7uZ/DTPSbdKA0saCj/GcIS7Du5tSCDfExBU69jp5C gQWvQgZi7BmaJ9DbuYqCvPRL+PENT+W+Mf4Tvd3bblSlE4JmDLtMlalvsbvRhkwr7UZf StwQ== X-Gm-Message-State: AOAM530+2ygNK/uA4JEGFlBTqcxJqtPJEweVDFwP65k8dPIZG+J3TQlH oKBligQXbIr39D+pJ5wXUlQvShka8Sw+JFLngbd8CnMCpO+q7fMT X-Google-Smtp-Source: ABdhPJwviV6KmlklvjWS23h0kOhgLmP9WaubjDevHw9hRZ/jYFMNPtxeuJsd69jaOkfUm1R/pdQw0b4iMVj2d03sFxo= X-Received: by 2002:a05:6638:4195:b0:32b:e68b:237a with SMTP id az21-20020a056638419500b0032be68b237amr5581502jab.269.1652557267270; Sat, 14 May 2022 12:41:07 -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> <3bcf856c-c048-4b4d-adfc-c6ba352e3b20@www.fastmail.com> In-Reply-To: <3bcf856c-c048-4b4d-adfc-c6ba352e3b20@www.fastmail.com> From: Michael Schuster Date: Sat, 14 May 2022 21:40:56 +0200 Message-ID: Subject: Re: FreeBSD, boot environments and /dev To: Dave Cottlehuber Cc: freebsd-current Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4L0wqZ07c1z3wKG X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=TG4Lx1Oa; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of michaelsprivate@gmail.com designates 2607:f8b0:4864:20::d35 as permitted sender) smtp.mailfrom=michaelsprivate@gmail.com X-Spamd-Result: default: False [-3.99 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[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::d35:from]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current]; NEURAL_HAM_SHORT(-0.99)[-0.991]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; 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 On Thu, May 12, 2022 at 9:21 AM Dave Cottlehuber wrote: > > On Thu, 12 May 2022, at 07:12, Michael Schuster wrote: > > 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: > > where do I get these .txz files? > > https://download.freebsd.org/ftp/snapshots/amd64/amd64/14.0-CURRENT/ > https://download.freebsd.org/ftp/releases/amd64/amd64/13.1-RC6/ > > > should devfs be in /etc/fstab? in my current BE, it isn't ... > > this is the bare minimum I used. NB my partitions have artisanal > GPT labels, yours will probably be different. > > # Device Mountpoint FStype Options Dump Pass# > #/dev/gpt/swap0 none swap sw 0 0 > /dev/gpt/efiboot /boot/efi msdosfs rw,late,longnames 0 0 > tmpfs /tmp tmpfs rw,mode=01777,size=120g 0 0 > > thats all I needed to boot to userland & login. I'm reasonably sure that, > assuming you have a default zfs install, you'd not need anything in /etc/fstab > to boot. > > > 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. > > Yes it does here. failing that just use `bectl activate`. The -t is > a very nice addition. > > Well, we're definitely on the FreeBSD-current email list here, so it's > definitely in CURRENT, and 13.1 RC. Dave, all: findings: 1) temporary activation doesn't work for me: bectl accepts the option but there's no effect I noticed(*), beadm refuses the option. 2) booting into 'vanilla' worked - I got into a root shell on the console. Since I copied the files you mention (/etc/fstab /etc/rc.conf /boot/loader.conf) unchanged, that looks good. so ... this is probably a good starting point (again ;-)). I rebooted into the last "good" BE, mounted vanilla a clone of vanilla on /mnt (with vanilla a point to start again if anything goes wrong) and started with "pkg -r /mnt install pkg" ... but I admit it's getting late today, so I'll be lazy and ask if you have any further recommendations - I've come to expect them to work nicely :-) (and yes, I am grateful!) *) unless the first BE to be shown when I select 'boot environments' at boot isn't in fact the active one cheers Michael -- Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion'