Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Emmanuel Roullit <emmanuel.roullit@gmail.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] wic: squashfs does support partition uuid
Date: Wed, 5 Sep 2018 18:07:21 -0400	[thread overview]
Message-ID: <20180905220721.GM26633@bill-the-cat> (raw)
In-Reply-To: <1536177205-505-1-git-send-email-emmanuel.roullit@gmail.com>

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

On Wed, Sep 05, 2018 at 09:53:25PM +0200, Emmanuel Roullit wrote:

> wic allows the user to create disk image and reference each created
> partitions via its partition UUID.
> 
> squashfs does not support filesystem UUID but it does offer support for
> partition UUID.
> 
> $ lsblk -o NAME,FSTYPE,UUID,PARTUUID
> NAME   FSTYPE   UUID                                 PARTUUID
> sda
> |-sda1 vfat     6078-ACD0                            95aa4ffb-741d-4d99-adf6-0358bc890046
> |-sda2 squashfs                                      7d46da2d-29cc-4d5a-9e39-d0381c4abb0c
> |-sda3 squashfs                                      d4a3e24e-410a-4f2c-8ad5-8f8321de177b
> |-sda4 ext4     d72ec529-78e4-4cd3-b39b-781b6b1cb47c f3edc990-f4f6-4536-9587-44dae4ceb99f
> `-sda5 ext4     a0b265aa-e935-40b8-9c6b-e9e58ad3890f 6e72ebaa-29ed-41cd-844c-3f76976cf41d
> 
> Removing this constrain allows a user to create squashfs-based rootfs and boot
> from it with such kernel argument 'root=PARTUUID=7d46da2d-29cc-4d5a-9e39-d0381c4abb0c'
> 
> Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>

Please add in:
Fixes: 2fbdcf4e59c8 ("wic: kparser.py: Check for SquashFS and use-uuid")

> ---
>  scripts/lib/wic/ksparser.py | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py
> index e590b2f..92f0b6d 100644
> --- a/scripts/lib/wic/ksparser.py
> +++ b/scripts/lib/wic/ksparser.py
> @@ -196,11 +196,6 @@ class KickStart():
>                          raise KickStartError('%s:%d: %s' % \
>                                               (confpath, lineno, err))
>                      if line.startswith('part'):
> -                        # SquashFS does not support UUID
> -                        if parsed.fstype == 'squashfs' and parsed.use_uuid:
> -                            err = "%s:%d: SquashFS does not support UUID" \
> -                                  % (confpath, lineno)
> -                            raise KickStartError(err)
>                          # using ArgumentParser one cannot easily tell if option
>                          # was passed as argument, if said option has a default
>                          # value; --overhead-factor/--extra-space cannot be used

So I got this logic slightly wrong then.  We should correct the check
that we don't have parsed.fsuuid rather than use_uuid.  Thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2018-09-05 22:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-05 19:53 [PATCH] wic: squashfs does support partition uuid Emmanuel Roullit
2018-09-05 22:07 ` Tom Rini [this message]
2018-09-06 11:17   ` Emmanuel Roullit

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=20180905220721.GM26633@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=emmanuel.roullit@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