Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] wic/DirectPlugin: don't update fstab if --no-fstab-update
@ 2023-12-06 18:33 joerg.sommer
  2023-12-07 14:37 ` [OE-core] " Alexandre Belloni
  0 siblings, 1 reply; 2+ messages in thread
From: joerg.sommer @ 2023-12-06 18:33 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jörg Sommer

From: Jörg Sommer <joerg.sommer@navimatix.de>

The function `update_fstab` should not touch the fstab for partitions with
`--no-fstab-update`.

Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
---
 scripts/lib/wic/plugins/imager/direct.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py
index 9b619e41c1..013aa4255f 100644
--- a/scripts/lib/wic/plugins/imager/direct.py
+++ b/scripts/lib/wic/plugins/imager/direct.py
@@ -116,7 +116,7 @@ class DirectPlugin(ImagerPlugin):
 
         updated = False
         for part in self.parts:
-            if not part.realnum or not part.mountpoint \
+            if not part.realnum or not part.mountpoint or part.no_fstab_update \
                or part.mountpoint == "/" or not (part.mountpoint.startswith('/') or part.mountpoint == "swap"):
                 continue
 
-- 
2.34.1



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

end of thread, other threads:[~2023-12-07 14:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-06 18:33 [PATCH] wic/DirectPlugin: don't update fstab if --no-fstab-update joerg.sommer
2023-12-07 14:37 ` [OE-core] " Alexandre Belloni

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