Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: JeongBong Seo <lifeofthanks@gmail.com>
Cc: openembedded-core@lists.openembedded.org, JeongBong Seo <jb.seo@lge.com>
Subject: Re: [OE-core] [PATCH] wic: add 'none' fstype for custom image
Date: Wed, 10 Aug 2022 09:48:55 +0200	[thread overview]
Message-ID: <YvNi59exCGgnhioM@mail.local> (raw)
In-Reply-To: <20220808045710.25038-1-jb.seo@lge.com>

Hello,

On 08/08/2022 04:57:10+0000, JeongBong Seo wrote:
> It's not possible to set the label (of gpt entry) normally
> when I want to use non-listed fstype as a rawcopy.
> 
> Example)
> part ? --source rawcopy --ondisk mmcblk0 --label mypart --sourceparams file=mypart.raw
> 
> To resolve this problem, this patch addes a 'none' fstype
> and ignore do_image_label on rawcopy (that actually set the partition label.)
> 
> Signed-off-by: JeongBong Seo <jb.seo@lge.com>
> ---
>  scripts/lib/wic/ksparser.py               | 2 +-
>  scripts/lib/wic/plugins/source/rawcopy.py | 4 ++++
>  2 files changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py
> index 452a160232..298e593ad4 100644
> --- a/scripts/lib/wic/ksparser.py
> +++ b/scripts/lib/wic/ksparser.py
> @@ -157,7 +157,7 @@ class KickStart():
>          part.add_argument('--fsoptions', dest='fsopts')
>          part.add_argument('--fstype', default='vfat',
>                            choices=('ext2', 'ext3', 'ext4', 'btrfs',
> -                                   'squashfs', 'vfat', 'msdos', 'swap'))
> +                                   'squashfs', 'vfat', 'msdos', 'swap', 'none'))

This doesn't apply on master, can you rebase please?

>          part.add_argument('--mkfs-extraopts', default='')
>          part.add_argument('--label')
>          part.add_argument('--use-label', action='store_true')
> diff --git a/scripts/lib/wic/plugins/source/rawcopy.py b/scripts/lib/wic/plugins/source/rawcopy.py
> index 3c4997d8ba..a71629282d 100644
> --- a/scripts/lib/wic/plugins/source/rawcopy.py
> +++ b/scripts/lib/wic/plugins/source/rawcopy.py
> @@ -21,6 +21,10 @@ class RawCopyPlugin(SourcePlugin):
>  
>      @staticmethod
>      def do_image_label(fstype, dst, label):
> +        # don't create label when fstype is none
> +        if fstype == 'none':
> +            return
> +
>          if fstype.startswith('ext'):
>              cmd = 'tune2fs -L %s %s' % (label, dst)
>          elif fstype in ('msdos', 'vfat'):
> -- 
> 2.17.1
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#169013): https://lists.openembedded.org/g/openembedded-core/message/169013
> Mute This Topic: https://lists.openembedded.org/mt/92886214/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


  reply	other threads:[~2022-08-10  7:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-08  4:57 [PATCH] wic: add 'none' fstype for custom image JeongBong Seo
2022-08-10  7:48 ` Alexandre Belloni [this message]
2022-08-10  8:59   ` [OE-core] " lifeofthanks
2022-08-10  9:11     ` Quentin Schulz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YvNi59exCGgnhioM@mail.local \
    --to=alexandre.belloni@bootlin.com \
    --cc=jb.seo@lge.com \
    --cc=lifeofthanks@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox