public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH 0/1] wic: updated fstab does not preserve metadata of the original file
@ 2025-09-02 19:05 dani.barra25
  2025-09-02 19:05 ` [PATCH 1/1] wic: Content of the temporary updated fstab should be copied into the original not replacing it entirely dani.barra25
  2025-09-04 15:58 ` [OE-core] [PATCH 0/1] wic: updated fstab does not preserve metadata of the original file Mathieu Dubois-Briand
  0 siblings, 2 replies; 20+ messages in thread
From: dani.barra25 @ 2025-09-02 19:05 UTC (permalink / raw)
  To: openembedded-core; +Cc: hongxu.jia, trevor.woerner, Daniel Andrade

From: Daniel Andrade <dani.barra25@gmail.com>

Using `install` in the rootfs plugin forces fstab to be replaced entirely, meaning that even its Inodes will change, leading xattrs and SELinux context stored by pseudo not to be applied.
The fix just uses `cp` without preserving attributes from the temporary fstab since none of them are needed, just the content.
Same thing happens with the predefined mechanisms for ext4 and msdos. Using debugfs there is no way to replace contents while maintaining metadata, so the approach taken on the path was to remove the different fstab logic for those fstypes and also use the same modified cp command. Reviewing the builds I did it seems to work for all of the fstypes.

Another problem is that the timestamp applied to fstab is not the same as every other file. It seems like the `SOURCE_DATE_EPOCH` variable goes to the fallback timestamp (`SOURCE_DATE_EPOCH_FALLBACK`).
Since you are using that variable everywhere, it is not the same value as ` REPRODUCIBLE_TIMESTAMP_ROOTFS` under `poky/meta/conf/bitbake.conf` that is applied in every other file.

Daniel Andrade (1):
  wic: Content of the temporary updated fstab should be copied into the
    original not replacing it entirely.

 meta/conf/bitbake.conf                   |  4 +++-
 scripts/lib/wic/partition.py             | 15 +--------------
 scripts/lib/wic/plugins/source/rootfs.py |  4 ++--
 3 files changed, 6 insertions(+), 17 deletions(-)



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

end of thread, other threads:[~2025-10-23 13:05 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-02 19:05 [PATCH 0/1] wic: updated fstab does not preserve metadata of the original file dani.barra25
2025-09-02 19:05 ` [PATCH 1/1] wic: Content of the temporary updated fstab should be copied into the original not replacing it entirely dani.barra25
2025-10-11 13:18   ` [OE-core] " Mathieu Dubois-Briand
2025-10-17 11:04     ` dani.barra25
2025-10-17 11:04       ` [PATCH 1/1] Fstab: Fix xattrs not being maintained on fstab file when using wic fstab update funtionalities dani.barra25
2025-10-19 10:02         ` Mathieu Dubois-Briand
     [not found]           ` <20251019153922.27208-1-dani.barra25@gmail.com>
2025-10-19 15:39             ` [PATCH] Fstab xattrs: This update ensures that fstab xattrs are correctly updated without adding a lock to the database dani.barra25
2025-10-20 12:09               ` [OE-core] " Alexander Kanavin
2025-10-20 13:18                 ` Daniel Andrade
2025-10-23 13:04                 ` Ross Burton
2025-10-19 15:41           ` [PATCH 1/1] Fstab: Fix xattrs not being maintained on fstab file when using wic fstab update funtionalities Daniel Andrade
2025-09-04 15:58 ` [OE-core] [PATCH 0/1] wic: updated fstab does not preserve metadata of the original file Mathieu Dubois-Briand
2025-09-11 16:56   ` Randy MacLeod
2025-09-13 10:02     ` Daniel Andrade
2025-09-23 15:05       ` Daniel Andrade
2025-09-23 18:44         ` Mathieu Dubois-Briand
2025-09-24 16:04           ` Daniel Andrade
2025-09-25  8:57             ` Mathieu Dubois-Briand
2025-09-25 11:11               ` Mathieu Dubois-Briand
2025-09-25 11:40                 ` Daniel Andrade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox