From nobody Wed May 11 14:58:27 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 273111AC95A4 for ; Wed, 11 May 2022 14:58:45 +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 4Kyyj03Fbgz3PYd for ; Wed, 11 May 2022 14:58:44 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by mail-io1-xd2c.google.com with SMTP id a10so2317440ioe.9 for ; Wed, 11 May 2022 07:58:44 -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=5Vj3KRN06A8jdRJprwGFnM2PbK9SNAIiX6E3jQ6XFa8=; b=aXj2hiVYKbvt4g0MhBHNlOX5UxBnTZPeRyOkkMxU7t8yJfltZoFTeC2GgHgsAtOm8s 4go6EHWznN6i6P1TZ3LnlU/Wgi0NiEO2PutQUV6gXsduF+M+c4s7Yi2QysH3/0VPnv5W CV3/6hJE0KVukToD4vBNaEv8VnEYljH6ilYZW3Qjh+MyTfb7pcKjTFDPOuoQakXDnTM0 3IDq6vET5AWd32h2BUbRrNGT+ZycaTuQaM6cMo9US8rlx5WBKVLi9AiQYernydpYQGjY r4heg7C9/BG8NXBTvhMwdGxV2G2Tj5Ud5ciywDyslgxLl8Gc2YUX/dwSMU5kWMjFW1mY MD3g== 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=5Vj3KRN06A8jdRJprwGFnM2PbK9SNAIiX6E3jQ6XFa8=; b=uVYzkdMq/60U5RnFiWwgOByH7hcnSeUv3NA9mGE/Y+tScdrp0G8WoqwysjbHNTZI8k BT+c5Hh3vpi3l1yobU71r39usdo8vinCpcR1AhL+FrUc8YRUXfw522u/4KEPFdAZvnro GbVy6YjFEQiamJPMmtcbYJLJe7PGjO4kSbfptA0xYrD9+p4fvn6ZK+ZCGFNvJMjIu4CL pRe8LJU8eZ5HMTzxySnjS3802J8z0DKOE5iQZt12ySawxwS+lxpIUs8xMGFKhJsDBhB9 cWXTMePytAFQJUyed2jfC1bolyHT1/N2yjUIY9WQO0kJD9Bdt2Ma96DZYRc9hp8zTq5n 1mcg== X-Gm-Message-State: AOAM533idsBBpXeVLZgnnnld64tD+nDt0BnaI76hWNFin/VE5jeDlstI gqsBcq+LQ/T/fA3em2t6Wjzx1ti/vkgdvWfStIM= X-Google-Smtp-Source: ABdhPJxgeXIBwbiYVIHwquDAwrAqOjW1D9vy+Bm//oPNx5R8H5pwDQVmyB1F6Fn9CKTDttyYXH0cRiXvr1TCYtLrkPY= X-Received: by 2002:a05:6602:2c4e:b0:657:4115:d9e4 with SMTP id x14-20020a0566022c4e00b006574115d9e4mr11099638iov.91.1652281117736; Wed, 11 May 2022 07:58:37 -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> In-Reply-To: <481e0739-bdc4-4ce6-a856-a80cf5294d03@www.fastmail.com> From: Michael Schuster Date: Wed, 11 May 2022 16:58:27 +0200 Message-ID: Subject: Re: FreeBSD, boot environments and /dev To: Dave Cottlehuber Cc: Wes Maag , freebsd-current Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4Kyyj03Fbgz3PYd X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=aXj2hiVY; 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 [-0.02 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; 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]; 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]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.98)[0.977]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d2c:from]; MLMMJ_DEST(0.00)[freebsd-current]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Mon, May 9, 2022 at 10:04 AM Dave Cottlehuber wrote: > > On Mon, 9 May 2022, at 06:25, Michael Schuster wrote: > > On Fri, May 6, 2022 at 12:15 AM Wes Maag wrote: > >> > >> > >> On Thu, May 5, 2022 at 4:10 PM Michael Schuster wrote: > >>> 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: > > This is expected; /dev would usually be empty until devfs is mounted. You're right - I have a few "historical" BEs lying around, and for most of them, /dev/ is empty. As you guess (below), for the others, they're most likely remnants of the first time I tried to do "pkg -c /mnt" without /mnt/dev being mounted. (as an aside: when was that changed? I know for sure that this hasn't always been necessary) 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? Thx Michael > > Looking into the unmounted /dev via the last zfs snapshot of your > / filesystem should also be empty: > > $ ls -AFGhl /.zfs/snapshot/$(ls -rt /.zfs/snapshot/ | tail -1)/dev > total 0 > > If it's not I'd guess these are stray garbage from BE experiments > where /dev wasn't mounted and various scripts & tools tried to pipe > via /dev/{fd,zero,null,...}. > > If you created a hypothetical "empty" BE from scratch, unpacked > src tarballs into it, it would also be empty. > > A+ > Dave -- Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion'