public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: "MOESSBAUER, Felix" <felix.moessbauer@siemens.com>,
	"quirin.gylstorff@siemens.com" <quirin.gylstorff@siemens.com>,
	"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Subject: Re: [PATCH] classes/rootfs: remove content of /dev in postprocessing
Date: Tue, 23 Apr 2024 22:39:11 +0200	[thread overview]
Message-ID: <924116e5-dcb6-419c-a9f8-16bee6706df3@siemens.com> (raw)
In-Reply-To: <47f87daeaaeb7f808545497c802fd1cf8c245409.camel@siemens.com>

On 23.04.24 12:45, 'MOESSBAUER, Felix' via isar-users wrote:
> On Tue, 2024-04-23 at 11:49 +0200, Quirin Gylstorff wrote:
>> From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
>>
>> `/dev` is populated by the kernel/initrd during boot up and non
>> reproducable.
>>
>> Use a seperate function as /dev must not be mount before the content
>> is removed.
>>
>> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
> 
> + Reported-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> 
> That helps to keep the original people in the loop in case further bugs
> show up.
> 
>> ---
>>  meta/classes/rootfs.bbclass | 8 ++++++++
>>  1 file changed, 8 insertions(+)
>>
>> diff --git a/meta/classes/rootfs.bbclass
>> b/meta/classes/rootfs.bbclass
>> index 498fbfd6..1d4bea59 100644
>> --- a/meta/classes/rootfs.bbclass
>> +++ b/meta/classes/rootfs.bbclass
>> @@ -340,6 +340,14 @@ python do_rootfs_postprocess() {
>>  }
>>  addtask rootfs_postprocess before do_rootfs after do_unpack
>>  
>> +# use a seperate function instead of postprocessing as dev should
>> +# not be mount on removal
>> +do_rootfs_clean_dev[network] = "${TASK_USE_SUDO}"
>> +do_rootfs_clean_dev() {
>> +    sudo rm -rf "${ROOTFSDIR}/dev/"*
> 
> I just found out that /run also needs to be cleared.
> 
> In addition, the ".old" kernel parts should also be removed:
> 
> - initrd.img.old
> - vmlinuz.old
> 

I wonder why none of this so far triggered the repro test of
isar-cip-core. Any idea why?

Jan

-- 
Siemens AG, Technology
Linux Expert Center


  reply	other threads:[~2024-04-23 20:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-23  9:49 Quirin Gylstorff
2024-04-23 10:45 ` MOESSBAUER, Felix
2024-04-23 20:39   ` Jan Kiszka [this message]
2024-04-24  8:28     ` 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=924116e5-dcb6-419c-a9f8-16bee6706df3@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=felix.moessbauer@siemens.com \
    --cc=isar-users@googlegroups.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