diff options
Diffstat (limited to 'scripts/lib/wic/ksparser.py')
| -rw-r--r-- | scripts/lib/wic/ksparser.py | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py index 3eb669da39..7a4cc83af5 100644 --- a/scripts/lib/wic/ksparser.py +++ b/scripts/lib/wic/ksparser.py | |||
| @@ -157,7 +157,8 @@ class KickStart(): | |||
| 157 | part.add_argument('--fsoptions', dest='fsopts') | 157 | part.add_argument('--fsoptions', dest='fsopts') | 
| 158 | part.add_argument('--fstype', default='vfat', | 158 | part.add_argument('--fstype', default='vfat', | 
| 159 | choices=('ext2', 'ext3', 'ext4', 'btrfs', | 159 | choices=('ext2', 'ext3', 'ext4', 'btrfs', | 
| 160 | 'squashfs', 'vfat', 'msdos', 'swap')) | 160 | 'squashfs', 'vfat', 'msdos', 'erofs', | 
| 161 | 'swap')) | ||
| 161 | part.add_argument('--mkfs-extraopts', default='') | 162 | part.add_argument('--mkfs-extraopts', default='') | 
| 162 | part.add_argument('--label') | 163 | part.add_argument('--label') | 
| 163 | part.add_argument('--use-label', action='store_true') | 164 | part.add_argument('--use-label', action='store_true') | 
| @@ -229,6 +230,10 @@ class KickStart(): | |||
| 229 | err = "%s:%d: SquashFS does not support LABEL" \ | 230 | err = "%s:%d: SquashFS does not support LABEL" \ | 
| 230 | % (confpath, lineno) | 231 | % (confpath, lineno) | 
| 231 | raise KickStartError(err) | 232 | raise KickStartError(err) | 
| 233 | # erofs does not support filesystem labels | ||
| 234 | if parsed.fstype == 'erofs' and parsed.label: | ||
| 235 | err = "%s:%d: erofs does not support LABEL" % (confpath, lineno) | ||
| 236 | raise KickStartError(err) | ||
| 232 | if parsed.fstype == 'msdos' or parsed.fstype == 'vfat': | 237 | if parsed.fstype == 'msdos' or parsed.fstype == 'vfat': | 
| 233 | if parsed.fsuuid: | 238 | if parsed.fsuuid: | 
| 234 | if parsed.fsuuid.upper().startswith('0X'): | 239 | if parsed.fsuuid.upper().startswith('0X'): | 
