From: Baurzhan Ismagulov <ibr@radix50.net>
To: isar-users@googlegroups.com
Cc: felix.moessbauer@siemens.com, jan.kiszka@siemens.com,
Quirin.Gylstorff@siemens.com
Subject: Re: [PATCH v2] classes/rootfs: remove content of /dev, /run and vmlinux old
Date: Fri, 26 Apr 2024 10:55:20 +0200 [thread overview]
Message-ID: <Zitr+PrHcxwS2iaU@ilbers.de> (raw)
In-Reply-To: <20240425071419.292013-1-Quirin.Gylstorff@siemens.com>
On 2024-04-25 09:13, 'Quirin Gylstorff' via isar-users wrote:
> `/dev` and `/run` contain artifacts from the ISAR build clean them
> up for reproducability.
Suggest "Isar" and "reproducibility".
> diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
> index 98741da0..4af0d448 100644
> --- a/meta/classes/image.bbclass
> +++ b/meta/classes/image.bbclass
> @@ -427,12 +427,17 @@ do_rootfs_finalize() {
> rmdir --ignore-fail-on-non-empty ${ROOTFSDIR}/base-apt
>
> mountpoint -q '${ROOTFSDIR}/dev' && \
> - umount -l ${ROOTFSDIR}/dev
> + umount -l -R ${ROOTFSDIR}/dev && \
> + rm -rf ${ROOTFSDIR}/dev/*
> +
> mountpoint -q '${ROOTFSDIR}/proc' && \
> umount -l ${ROOTFSDIR}/proc
> mountpoint -q '${ROOTFSDIR}/sys' && \
> umount -l ${ROOTFSDIR}/sys
>
> + rm -rf ${ROOTFSDIR}/run/*
> + rm -f ${ROOTFSDIR}/vmlinuz.old
> +
Could you provide the list of the specific files that you want to have removed?
Debian normally has /dev populated even though devtmpfs is mounted later on top
of it. If the problem is that the entries have different timestamps on
different builds, then the question is not limited to /dev but applies to any
files created in postinstall scripts. I don't think the general approach should
be to remove such files at the meta level.
On an unrelated note, we've tested non-lazy mounts and haven't observed any
issues; we'll share the patches for it as well as for recursive mounts.
With kind regards,
Baurzhan
next prev parent reply other threads:[~2024-04-26 8:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-25 7:13 Quirin Gylstorff
2024-04-26 8:55 ` Baurzhan Ismagulov [this message]
2024-04-26 12:13 ` MOESSBAUER, Felix
2024-05-02 15:16 ` Baurzhan Ismagulov
2024-05-10 15:29 ` MOESSBAUER, Felix
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=Zitr+PrHcxwS2iaU@ilbers.de \
--to=ibr@radix50.net \
--cc=Quirin.Gylstorff@siemens.com \
--cc=felix.moessbauer@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@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