[OE-core] [PATCH v2 2/2] wic: add ontrack DM6 aux3 support

Burton, Ross ross.burton at intel.com
Fri May 11 15:41:26 UTC 2018


Somehow, these patches are causing selftest to fail:

ERROR: Not supported fstype:

https://autobuilder.yocto.io/builders/nightly-oe-selftest/builds/1051/steps/Running%20oe-selftest/logs/stdio

Ross

On 4 May 2018 at 18:43, Otavio Salvador <otavio at ossystems.com.br> wrote:
> Add ontrack DM6 aux3 partition support to enable creating
> partitions required to boot i.MX MXS based platforms.
>
> This has been removed by OE-Core:21af89a6 (wic: allow only supported
> fstypes). It was unnoticed as most users were still using the
> meta-freecale image generation class instead of wic but we are now
> in process of dropping the class and this is the remaining use-case.
>
> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
> ---
>
> Changes in v2: None
>
>  scripts/lib/wic/ksparser.py              | 3 ++-
>  scripts/lib/wic/plugins/imager/direct.py | 2 ++
>  2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py
> index e590b2fe3c..02b267380f 100644
> --- a/scripts/lib/wic/ksparser.py
> +++ b/scripts/lib/wic/ksparser.py
> @@ -138,7 +138,8 @@ 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',
> +                                   'ontrackdm6aux3'))
>          part.add_argument('--mkfs-extraopts', default='')
>          part.add_argument('--label')
>          part.add_argument('--no-table', action='store_true')
> diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py
> index 1fa6b917e6..594481e6a9 100644
> --- a/scripts/lib/wic/plugins/imager/direct.py
> +++ b/scripts/lib/wic/plugins/imager/direct.py
> @@ -528,6 +528,8 @@ class PartitionedImage():
>                  parted_fs_type = "fat16"
>                  if not part.system_id:
>                      part.system_id = '0x6' # FAT16
> +            elif part.fstype == "ontrackdm6aux3":
> +                parted_fs_type = "ontrackdm6aux3"
>              else:
>                  # Type for ext2/ext3/ext4/btrfs
>                  parted_fs_type = "ext2"
> --
> 2.17.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list