Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] wic: swap partitions are not added to fstab
@ 2022-10-28 10:05 ciaran.courtney
  2022-10-28 12:18 ` [OE-core] " Sergey Zhmylev
  2022-10-28 12:18 ` [OE-core] " Michael Opdenacker
  0 siblings, 2 replies; 5+ messages in thread
From: ciaran.courtney @ 2022-10-28 10:05 UTC (permalink / raw)
  To: openembedded-core; +Cc: ciarancourtney

From: ciarancourtney <ciaran.courtney@activeenergy.ie>

- Regression in 7aa678ce804c21dc1dc51b9be442671bc33c4041

Signed-off-by: ciarancourtney <ciaran.courtney@activeenergy.ie>
---
 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 58965b75da..dfaa901567 100644
--- a/scripts/lib/wic/plugins/imager/direct.py
+++ b/scripts/lib/wic/plugins/imager/direct.py
@@ -117,7 +117,7 @@ class DirectPlugin(ImagerPlugin):
         updated = False
         for part in self.parts:
             if not part.realnum or not part.mountpoint \
-               or part.mountpoint == "/" or not part.mountpoint.startswith('/'):
+               or part.mountpoint == "/" or not (part.mountpoint.startswith('/') or part.mountpoint == "swap"):
                 continue
 
             if part.use_uuid:
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [PATCH] wic: swap partitions are not added to fstab
@ 2022-10-28 12:30 ciaran.courtney
  0 siblings, 0 replies; 5+ messages in thread
From: ciaran.courtney @ 2022-10-28 12:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: ciarancourtney

From: ciarancourtney <ciaran.courtney@activeenergy.ie>

- Regression in 7aa678ce804c21dc1dc51b9be442671bc33c4041


Signed-off-by: Ciaran Courtney <ciaran.courtney@activeenergy.ie>
---
 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 58965b75da..dfaa901567 100644
--- a/scripts/lib/wic/plugins/imager/direct.py
+++ b/scripts/lib/wic/plugins/imager/direct.py
@@ -117,7 +117,7 @@ class DirectPlugin(ImagerPlugin):
         updated = False
         for part in self.parts:
             if not part.realnum or not part.mountpoint \
-               or part.mountpoint == "/" or not part.mountpoint.startswith('/'):
+               or part.mountpoint == "/" or not (part.mountpoint.startswith('/') or part.mountpoint == "swap"):
                 continue
 
             if part.use_uuid:
-- 
2.34.1



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

end of thread, other threads:[~2022-10-28 12:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-28 10:05 [PATCH] wic: swap partitions are not added to fstab ciaran.courtney
2022-10-28 12:18 ` [OE-core] " Sergey Zhmylev
2022-10-28 12:30   ` ciaran.courtney
2022-10-28 12:18 ` [OE-core] " Michael Opdenacker
  -- strict thread matches above, loose matches on Subject: below --
2022-10-28 12:30 ciaran.courtney

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