From nobody Wed May 18 12:45:18 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 400AC1ADABA9 for ; Wed, 18 May 2022 12:45:31 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) (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 4L3CQ22QvHz4TqF for ; Wed, 18 May 2022 12:45:30 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by mail-il1-x133.google.com with SMTP id s14so1366793ild.6 for ; Wed, 18 May 2022 05:45:30 -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=UnL2moNKUmqKSPd5WTh4KsrWtiyuchbx8/1/waJBYaI=; b=l6a5oUYfChwQLLglZxzPBdzCmGUWwUnNPYx68DycjKlxng90//mToZm9Oa+nhn8CEE wl+ZuB+uDfILQ3K7pQBCorwF4aY7bilDwAJwnltB7X4+UqTa/l6YPN5NQJUriQiesiD2 okmJBcTjfzSe/AsB4IyzhWUUKq9v+eaaO2dyeVC19/+fSTMLUO1SpYMpnQ9tAWGetkpV i/wNZg4kDVOYkooGwlm7NPen05i4Tob008/he19DMSEEYlgylQWePo5wBPHpBwM37KVx mqWilWzPdLdrfywVHZH9blr7ahQHDNRIqK67weuI7/NI6TxK7BN2Svdc9LwYd1xyLqnH mS9w== 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=UnL2moNKUmqKSPd5WTh4KsrWtiyuchbx8/1/waJBYaI=; b=Cz9LgpiE/kArt7ILbqFVMfA0ORo7m81IHUwDVUuoze7WZZ7lkUQZSaOqoHk73ZTiE1 UMjBfHqcLeGwvgEKlYn96kQAGEjsf13Oj9Yxd9N2TXAO2x3HntuNWNqj2G3qRDPHdN7A 2qymfAMuBgTawlKc1iaFqvHjjuz9Rd6oDEO8hcDLk4aZwF+D6u9LYV1l4r5orf5dFGuS osiFC25AnznKAON/4HCFZzJfuQTFOGDpFui/0Xv6HKgOXtJKXdhaMeDGHI7LOQZzEZjV 4VYblRnYum2zu48zB1hR9LMGGkM6VF6/H0fqSF1Qz2+suypqfY0BwXw45aGRobFLo2/1 pQpA== X-Gm-Message-State: AOAM532l7FNX1LzYKVN+3u5sWIjisz/e6I11wt3uOuFEiv5oDIh3hUmj 6SouY+ouAg15IEmtxnnoB3IQCnrVxRWDWLatO6BMm/Gl4PwgZA== X-Google-Smtp-Source: ABdhPJyYRBHNOgYAU4SVjUTPWyjJmr/wfOneEiByaBP5EIyqWWXd2UrUBUyDcreYwALIxuu1DSyGoRDoLp5ZuL1YH0U= X-Received: by 2002:a05:6e02:5a2:b0:2cf:8e6e:a5ab with SMTP id k2-20020a056e0205a200b002cf8e6ea5abmr14390575ils.63.1652877929445; Wed, 18 May 2022 05:45:29 -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: From: Michael Schuster Date: Wed, 18 May 2022 14:45:18 +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: 4L3CQ22QvHz4TqF X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=l6a5oUYf; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of michaelsprivate@gmail.com designates 2607:f8b0:4864:20::133 as permitted sender) smtp.mailfrom=michaelsprivate@gmail.com X-Spamd-Result: default: False [-3.53 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.53)[-0.526]; 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)[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::133:from]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current]; NEURAL_HAM_SHORT(-1.00)[-1.000]; 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 Sat, May 14, 2022, 21:40 Michael Schuster wrote: > > 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. update (answered in a different thread, but to keep this here too): temporary activation does in fact work, it's not reflected in the list of BEs presented at the boot menu I'm still working on a "full" installation of what I have on the running BE into the new one ("vanilla") - if you have any ideas, I welcome them :-) thx Michael > > 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 >