From nobody Thu May 05 21:10: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 AD2B61ABB6E9 for ; Thu, 5 May 2022 21:10:28 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) (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 4KvRDh0VD6z3Kt6 for ; Thu, 5 May 2022 21:10:28 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by mail-io1-xd2c.google.com with SMTP id h85so6087615iof.12 for ; Thu, 05 May 2022 14:10:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=HMG4mE8rmqWIq9EqADgMXTxl3uFJR2xB0VJQcWBBMS4=; b=jKj/2CklXswHj4dxXmJzRVwVcqsjM/848B3C1hwQeQftEw1tDazhwbzl7F1TfWctyv lnQ+5yGCJqXavI+TmAoHVBHB7RokC46WdodBrRU3jk+WL4yP/pE+hELnDeB568otcgd8 HXmRB56PKg2LCjfLsbhd76dvtJwQI3Bf1W2ebpk9Ji4E+xMaoVcUG/Lap8S7NANOdb52 bmx8/hfxjMWMM7Gzl302TO3Cv7yz1SLa2W1VZ/klhgoKrRa2hzJ+uzOiMts7rqJK8rhV JCIUjcPggXEYvu36QSYi6NO0YnBRC7/4qvyCxFxspiB4+R8etW+62OEwXHy7FacTMNG2 9pow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=HMG4mE8rmqWIq9EqADgMXTxl3uFJR2xB0VJQcWBBMS4=; b=b168akkIq49qK6ozmHEwS18lWtrrDNhC5B2gq022LfQpYhR0XChKasHCA9lrTsbS7n bymoeenQTNXRrbwfr1USvBnd0o2zQamJA63DKlvLh00cr8UQzb/JOdDzCxWFo3ysMqdp cWxe10CXG5Y7/ABDduBm0ntkgDE4VvTzYIz/j5EVuNp6wVr61YItmNbMWJYyxoAymy7A W4RHU7p2u3TVlbi5SbZvGLfXQR3/nmq5P1TWa0HXLPAOv7qWyN4Uv6Zh396NeL1LAKNq 07E9C5ZHg/UeU7y/+KGHRMBlqDvhCtYqPJcjSQNOLzp4yjmeSLnTACE5kFQUQQXolUvJ qfkQ== X-Gm-Message-State: AOAM530nhRxf8KjPyxK1mTR0HMnGD/haDEQ//N4pkoYhqVaGmhapm2cI nHuhaxPtlLnGkJqjHiJcLwIVaYq78R72FCQsupf8VHKc28PWLWKQ X-Google-Smtp-Source: ABdhPJw+R1Z8Gyy+VWG2tIlH09wWhKNysH6lVBMIWY4BfGwcjhmRFAvRGrB7OOnZ6BVEYmqMScN+XcjH5wsl8/6gWN8= X-Received: by 2002:a05:6638:3896:b0:32b:95e2:cb81 with SMTP id b22-20020a056638389600b0032b95e2cb81mr79115jav.78.1651785027001; Thu, 05 May 2022 14:10:27 -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 From: Michael Schuster Date: Thu, 5 May 2022 23:10:18 +0200 Message-ID: Subject: FreeBSD, boot environments and /dev To: FreeBSD CURRENT Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4KvRDh0VD6z3Kt6 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="jKj/2Ckl"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of michaelsprivate@gmail.com designates 2607:f8b0:4864:20::d2c 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)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d2c:from]; NEURAL_HAM_SHORT(-1.00)[-0.996]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MLMMJ_DEST(0.00)[freebsd-current]; 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 Hi all, while still working (slowly) on an answer to my own question on the right workflow to keep current up to date reliably with boot environments, I noticed that after creating and mounting a new BE, that new BE's /dev (eg /mnt/dev) is very sparsely populated: [22:44:45: ~ 0] $ ll /mnt/dev total 20 9 dr-xr-xr-x 4 root wheel 7 Apr 18 00:35 . 9 drwxr-xr-x 23 root wheel 30 May 5 22:44 .. 1 drwxr-xr-x 2 root wheel 2 Apr 18 00:35 fd 1 lrwxr-xr-x 1 root wheel 12 Apr 17 20:41 log -> /var/run/log 1 -rw-r--r-- 1 root wheel 63 May 3 22:19 null 1 -rw-r--r-- 1 root wheel 1 May 3 22:18 null.bak 1 drwxr-xr-x 2 root wheel 2 Apr 18 00:35 shm [22:44:48: ~ 0] $ (no matter whether I use "beadm create" or "bectl create -r") I can then mount devfs: # mount -t devfs devfs /mnt/dev and it will look (and work) as expected (eg for "pkg -c /mnt update" (*)) ... as long as the BE is mounted. When I try to boot from (into?) that BE though, it fails, and on the console I can see messages about missing /dev/... entries. I sneaked a peek into beinstall.sh, found no inspiration there, I'm afraid. I believe I noticed this apparent requirement to mount devfs separately not so long ago ... definitely this year, while I've been experimenting with boot environments for quite a bit longer. Was I just lucky all along, or did something change ... and, more importantly, how do I make my boot environments bootable again? TIA for hints, pointers, advice Michael *) I first noticed something was amiss when "pkg -c /mnt ... " complained about /dev/null missing, IIRC ... -- Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion'