All of lore.kernel.org
 help / color / mirror / Atom feed
* .overlay directory
@ 2021-01-06  4:01 Leo Cheng
  2021-01-06 18:34 ` Milton Miller II
  2021-01-06 22:03 ` Bills, Jason M
  0 siblings, 2 replies; 5+ messages in thread
From: Leo Cheng @ 2021-01-06  4:01 UTC (permalink / raw)
  To: openbmc


[-- Attachment #1.1: Type: text/plain, Size: 587 bytes --]

Hi Teams,

I'm engineer of developing openbmc.
I have the issue of restore-defaults: targeted_clean and I find the targeted_clean function in the init script which is from meta-openbmc-mods\meta-common\recipes-phosphor\preinit-mounts\preinit-mounts
[cid:image002.png@01D6E41F.6F46D340]

[cid:image001.png@01D6E41E.33B8A8E0]
I can't find /tmp/.rwfs/.overlay in BMC.
[cid:image004.jpg@01D6E423.A3447810]

Check Intel openbmc, /tmp/.rwfs/.overlay exists in BMC.
[cid:image008.jpg@01D6E423.A3447810]

How to add it? Do you have any idea?

Thanks.

Best Regards,
Leo Cheng

[-- Attachment #1.2: Type: text/html, Size: 3919 bytes --]

[-- Attachment #2: image001.png --]
[-- Type: image/png, Size: 53928 bytes --]

[-- Attachment #3: image002.png --]
[-- Type: image/png, Size: 19486 bytes --]

[-- Attachment #4: image004.jpg --]
[-- Type: image/jpeg, Size: 8241 bytes --]

[-- Attachment #5: image008.jpg --]
[-- Type: image/jpeg, Size: 45453 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re:  .overlay directory
  2021-01-06  4:01 .overlay directory Leo Cheng
@ 2021-01-06 18:34 ` Milton Miller II
  2021-01-06 22:03 ` Bills, Jason M
  1 sibling, 0 replies; 5+ messages in thread
From: Milton Miller II @ 2021-01-06 18:34 UTC (permalink / raw)
  To: Leo Cheng; +Cc: openbmc

On Jan 6, 2021, Leo Cheng wrote:
> Hi Teams,
>  
> I’m engineer of developing openbmc.
> I have the issue of restore-defaults: targeted_clean and I find the
>targeted_clean function in the init script which is from
>meta-openbmc-mods\meta-common\recipes-phosphor\preinit-mounts\preinit
>-mounts

Hi.  

I'm not familiar with this directory.  Since you are talking about 
wolfpass I am guessing you are talking about intel modifications 
but don't have a full reference.

> 
>  
> 
> I can’t find /tmp/.rwfs/.overlay in BMC.
> 
>  
> Check Intel openbmc, /tmp/.rwfs/.overlay exists in BMC.
> 
>  
> How to add it? Do you have any idea?
>  


I do not know what the changes in this mods repository 
are about nor any background.  The original scripts 
operate under /run.

(I wrote the original init and update scripts and have
been involved in reviewing changes.  They are here 

https://github.com/openbmc/openbmc/blob/master/meta-phosphor/recipes-phosphor/initrdscripts/files/

From looking at the snippit graphics there was a function 
targeted_clean that was trying to  preserve some files and 
remove the remainder.   

A similar function is availabe via the whitelist in the
original init scripts. 


While the wlist is hardcoded in
the existing repository it would be easy to implement 
dynamic build control of the content if we move it to 
the phosphor-misc repository


If the issue is about making only etc and var updatable,
I am willing to assist or write an update with someone to 
test.   The proposed filesystem stack would be similar to 
the ubi and emmc options with a writable /var containing 
the /etc overlay.

milton

> Thanks.
>  
> Best Regards,
> Leo Cheng
>     


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: .overlay directory
  2021-01-06  4:01 .overlay directory Leo Cheng
  2021-01-06 18:34 ` Milton Miller II
@ 2021-01-06 22:03 ` Bills, Jason M
  1 sibling, 0 replies; 5+ messages in thread
From: Bills, Jason M @ 2021-01-06 22:03 UTC (permalink / raw)
  To: openbmc



On 1/5/2021 8:01 PM, Leo Cheng wrote:
> Hi Teams,
> 
> I’m engineer of developing openbmc.
> 
> I have the issue of restore-defaults: targeted_clean and I find the 
> targeted_clean function in the init script which is from 
> meta-openbmc-mods\meta-common\recipes-phosphor\preinit-mounts\preinit-mounts
> 
> I can’t find /tmp/.rwfs/.overlay in BMC.
> 
> Check Intel openbmc, /tmp/.rwfs/.overlay exists in BMC.
> 
> How to add it? Do you have any idea?
Hi Leo,

In Intel-BMC, we have a service named nv-sync that is responsible for 
copying the overlay contents from the tmpfs into the non-volatile copy. 
I think that may be what you are looking for.

https://github.com/Intel-BMC/openbmc/tree/intel/meta-openbmc-mods/meta-common/recipes-core/nv-sync

Thanks,
-Jason
> 
> Thanks.
> 
> Best Regards,
> 
> Leo Cheng
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: .overlay directory
  2021-01-06  5:33 Leo Cheng
@ 2021-01-06 18:10 ` Doman, Jonathan
  0 siblings, 0 replies; 5+ messages in thread
From: Doman, Jonathan @ 2021-01-06 18:10 UTC (permalink / raw)
  To: openbmc, Leo_Cheng


[-- Attachment #1.1: Type: text/plain, Size: 1002 bytes --]

On Wed, 2021-01-06 at 05:33 +0000, Leo Cheng wrote:
Hi Teams,

I’m engineer of developing openbmc.
I have the issue of restore-defaults: targeted_clean and I find the targeted_clean function in the init script which is from meta-openbmc-mods\meta-common\recipes-phosphor\preinit-mounts\preinit-mounts
[cid:image002.png@01D6E41F.6F46D340]

[cid:image001.png@01D6E41E.33B8A8E0]
I can’t find /tmp/.rwfs/.overlay in BMC.
[cid:image004.jpg@01D6E423.A3447810]

Check Intel openbmc, /tmp/.rwfs/.overlay exists in BMC.
[cid:image008.jpg@01D6E423.A3447810]

How to add it? Do you have any idea?

Thanks.

Best Regards,
Leo Cheng

I don't have experience with wolfpass, but I suspect you're testing an older implementation which doesn't use the overlay, so it's probably expected to not see .overlay there.

The Restore Defaults functionality is broken in the current Intel-BMC code (tries to delete files while filesystem is RO), but it will be fixed with the next Intel-BMC update.

[-- Attachment #1.2: Type: text/html, Size: 4044 bytes --]

[-- Attachment #2: image001.png --]
[-- Type: image/png, Size: 19486 bytes --]

[-- Attachment #3: image002.png --]
[-- Type: image/png, Size: 53928 bytes --]

[-- Attachment #4: image003.jpg --]
[-- Type: image/jpeg, Size: 8241 bytes --]

[-- Attachment #5: image004.jpg --]
[-- Type: image/jpeg, Size: 45453 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* .overlay directory
@ 2021-01-06  5:33 Leo Cheng
  2021-01-06 18:10 ` Doman, Jonathan
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Cheng @ 2021-01-06  5:33 UTC (permalink / raw)
  To: openbmc


[-- Attachment #1.1: Type: text/plain, Size: 587 bytes --]

Hi Teams,

I'm engineer of developing openbmc.
I have the issue of restore-defaults: targeted_clean and I find the targeted_clean function in the init script which is from meta-openbmc-mods\meta-common\recipes-phosphor\preinit-mounts\preinit-mounts
[cid:image002.png@01D6E41F.6F46D340]

[cid:image001.png@01D6E41E.33B8A8E0]
I can't find /tmp/.rwfs/.overlay in BMC.
[cid:image004.jpg@01D6E423.A3447810]

Check Intel openbmc, /tmp/.rwfs/.overlay exists in BMC.
[cid:image008.jpg@01D6E423.A3447810]

How to add it? Do you have any idea?

Thanks.

Best Regards,
Leo Cheng

[-- Attachment #1.2: Type: text/html, Size: 4083 bytes --]

[-- Attachment #2: image001.png --]
[-- Type: image/png, Size: 19486 bytes --]

[-- Attachment #3: image002.png --]
[-- Type: image/png, Size: 53928 bytes --]

[-- Attachment #4: image003.jpg --]
[-- Type: image/jpeg, Size: 8241 bytes --]

[-- Attachment #5: image004.jpg --]
[-- Type: image/jpeg, Size: 45453 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-07 22:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-06  4:01 .overlay directory Leo Cheng
2021-01-06 18:34 ` Milton Miller II
2021-01-06 22:03 ` Bills, Jason M
2021-01-06  5:33 Leo Cheng
2021-01-06 18:10 ` Doman, Jonathan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.