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

* Re: [OE-core] [PATCH] wic: swap partitions are not added to fstab
  2022-10-28 10:05 [PATCH] wic: swap partitions are not added to fstab ciaran.courtney
@ 2022-10-28 12:18 ` Sergey Zhmylev
  2022-10-28 12:30   ` ciaran.courtney
  2022-10-28 12:18 ` [OE-core] " Michael Opdenacker
  1 sibling, 1 reply; 5+ messages in thread
From: Sergey Zhmylev @ 2022-10-28 12:18 UTC (permalink / raw)
  To: openembedded-core@lists.openembedded.org,
	ciaran.courtney@activeenergy.ie


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

Hi Ciaran,

Thank you for the patch!
What for do you need swap in fstab?
It works perfectly out of the box without fstab entry:


root@genericx86-64<mailto:root@genericx86-64>:~# grep swap /etc/fstab

root@genericx86-64<mailto:root@genericx86-64>:~# cat /proc/swaps

Filename                                Type            Size            Used            Priority

/dev/vda3                               partition       45052           0               -2


--

With best wishes,
[cid:0ffef82130c00293042be5d146c47e92e7c19b2b.camel@yadro.com-0]        Sergei Zhmylev
Engineering consultant
OS development department







В Пт, 28/10/2022 в 11:05 +0100, ciaran.courtney@activeenergy.ie пишет:
«Внимание! Данное письмо от внешнего адресата!»

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

- Regression in 7aa678ce804c21dc1dc51b9be442671bc33c4041

Signed-off-by: ciarancourtney <ciaran.courtney@activeenergy.ie<mailto: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


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#172244): https://lists.openembedded.org/g/openembedded-core/message/172244
Mute This Topic: https://lists.openembedded.org/mt/94623104/7220546
Group Owner: openembedded-core+owner@lists.openembedded.org<mailto:openembedded-core+owner@lists.openembedded.org>
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [s.zhmylev@yadro.com<mailto:s.zhmylev@yadro.com>]
-=-=-=-=-=-=-=-=-=-=-=-


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

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

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

* Re: [OE-core] [PATCH] wic: swap partitions are not added to fstab
  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:18 ` Michael Opdenacker
  1 sibling, 0 replies; 5+ messages in thread
From: Michael Opdenacker @ 2022-10-28 12:18 UTC (permalink / raw)
  To: ciaran.courtney; +Cc: openembedded-core

Hi Ciaran,

On 10/28/22 12:05, ciaran.courtney@activeenergy.ie wrote:
> From: ciarancourtney <ciaran.courtney@activeenergy.ie>
>
> - Regression in 7aa678ce804c21dc1dc51b9be442671bc33c4041
>
> Signed-off-by: ciarancourtney <ciaran.courtney@activeenergy.ie>


Many thanks for the patch!

However, your "Signed-off-by" information doesn't properly list your 
first and last names, and this will cause trouble generating the release 
notes.

Could you run:

git config --global user.name "Ciaran Courtney"

(if I'm not mistaken), and regenerate your patch, please?

Thanks in advance
Cheers
Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



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

* Re: [PATCH] wic: swap partitions are not added to fstab
  2022-10-28 12:18 ` [OE-core] " Sergey Zhmylev
@ 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

[-- Attachment #1: Type: text/plain, Size: 304 bytes --]

I believe its common practice to add swap to fstab in order for it to be mounted, and that would have been the case before 7aa678ce804c21dc1dc51b9be442671bc33c4041 .

I'm developing a systemd based distro, which parses fstab at boot for disks to mount. I'm not sure what the non-systemd practice is.

[-- Attachment #2: Type: text/html, Size: 316 bytes --]

^ permalink raw reply	[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