All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] wic/direct.py: ignore root mountpoint in fstab updater
@ 2022-07-27 13:45 Markus Volk
  2022-07-27 15:44 ` [OE-core] " Ross Burton
  0 siblings, 1 reply; 6+ messages in thread
From: Markus Volk @ 2022-07-27 13:45 UTC (permalink / raw)
  To: openembedded-core; +Cc: Markus Volk

We already have a root entry in fstab. This commit prevents processing root
mountpoint in fstab_updater and thus avoids duplicate entries for root in fstab.

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 scripts/lib/wic/plugins/imager/direct.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py
index c44159b235..75004ab320 100644
--- a/scripts/lib/wic/plugins/imager/direct.py
+++ b/scripts/lib/wic/plugins/imager/direct.py
@@ -117,7 +117,8 @@ class DirectPlugin(ImagerPlugin):
         updated = False
         for part in self.parts:
             if not part.realnum or not part.mountpoint \
-               or not part.mountpoint.startswith('/'):
+               or not part.mountpoint.startswith('/') \
+               or part.mountpoint == "/":
                 continue
 
             if part.use_uuid:
-- 
2.34.1



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

end of thread, other threads:[~2022-08-02 14:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-27 13:45 [meta-oe][PATCH] wic/direct.py: ignore root mountpoint in fstab updater Markus Volk
2022-07-27 15:44 ` [OE-core] " Ross Burton
2022-07-27 16:31   ` Markus Volk
     [not found]   ` <1705BCB17DD12169.1380@lists.openembedded.org>
2022-07-27 17:04     ` Markus Volk
2022-07-28 16:15       ` Ross Burton
2022-08-02 14:05         ` Markus Volk

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.