[OE-core] [PATCH 2/2] wic: add ontrack DM6 aux3 support
Otavio Salvador
otavio at ossystems.com.br
Tue Apr 24 18:48:16 UTC 2018
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>
---
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 e590b2fe3c0..02b267380f6 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 1fa6b917e66..594481e6a94 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
More information about the Openembedded-core
mailing list