From: Zhihang Wei <wzh@ilbers.de>
To: Felix Moessbauer <felix.moessbauer@siemens.com>,
isar-users@googlegroups.com
Cc: jan.kiszka@siemens.com, quirin.gylstorff@siemens.com
Subject: Re: [PATCH 1/2] image: delete entries below /dev
Date: Fri, 10 Jul 2026 11:21:11 +0200 [thread overview]
Message-ID: <c318339a-9454-4c54-8411-299ad4cb103f@ilbers.de> (raw)
In-Reply-To: <20260706101217.1385245-1-felix.moessbauer@siemens.com>
Applied to next, thanks.
Zhihang
On 7/6/26 12:12, 'Felix Moessbauer' via isar-users wrote:
> These are generally not needed, as /dev is over-mounted by systemd on
> boot. When bootstrapping via unshare, these entries are not present,
> as the /dev is mounted when entering the namespace. As a preparation
> to make the images built with unshare and schroot bit identical, we
> have to delete these entries under schroot.
>
> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> ---
> meta/classes-recipe/image.bbclass | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/meta/classes-recipe/image.bbclass b/meta/classes-recipe/image.bbclass
> index 26a4ec06..6b02ff8e 100644
> --- a/meta/classes-recipe/image.bbclass
> +++ b/meta/classes-recipe/image.bbclass
> @@ -467,6 +467,9 @@ do_rootfs_finalize() {
> done
> fi
>
> + # Clear /dev on schroot as mmdebstrap --skip=output/dev (unshare) does not deploy it
> + find ${ROOTFSDIR}/dev -mindepth 1 -maxdepth 1 -exec rm -rf {} \;
> +
> rm -f "${ROOTFSDIR}/run/blkid/blkid.tab"
> rm -f "${ROOTFSDIR}/run/blkid/blkid.tab.old"
> EOSUDO
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/c318339a-9454-4c54-8411-299ad4cb103f%40ilbers.de.
prev parent reply other threads:[~2026-07-10 9:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-06 10:12 'Felix Moessbauer' via isar-users
2026-07-06 10:12 ` [PATCH 2/2] image: clear /run to not leak build system data 'Felix Moessbauer' via isar-users
2026-07-10 9:21 ` Zhihang Wei [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c318339a-9454-4c54-8411-299ad4cb103f@ilbers.de \
--to=wzh@ilbers.de \
--cc=felix.moessbauer@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.com \
--cc=quirin.gylstorff@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox