The story: the installer framework keyword in KS files originally was
"installerfw", and the keyword for the first plugin was "extlinux". However,
we realized that this is bad naming, and commit changed the names in commit
'
0bafaa1b31a0 kickstart: add an alias for installerfw'. That commit preserved
the old name as aliases for compatibility reasons. And added scary warnings
which are printed when the old names are used.
The only user user of the old names was Tizen IVI, and it stopped using them
very long time ago. Now it uses the new 'installerfw_plugins' and 'bootloader'
keywords instead.
So it is time to kill the old keywords completely and clean the code up. And
this is exactly what this patch does.
Change-Id: I23ef6c5850744734816974233229cf99fca05f38
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
commandMap[using_version]["bootloader"] = micboot.Mic_Bootloader
commandMap[using_version]["part"] = partition.Mic_Partition
commandMap[using_version]["partition"] = partition.Mic_Partition
- commandMap[using_version]["installerfw"] = installerfw.Mic_installerfw
commandMap[using_version]["installerfw_plugins"] = installerfw.Mic_installerfw
dataMap[using_version]["RepoData"] = micrepo.Mic_RepoData
dataMap[using_version]["PartData"] = partition.Mic_PartData
return op
def parse(self, args):
- if self.currentCmd == "installerfw":
- msger.warning("please, use 'installerfw_plugins' instead of " \
- "'installerfw', the latter is obsolete and will be " \
- "removed in future releases")
-
(_, extra) = self.op.parse_args(args=args, lineno=self.lineno)
if len(extra) != 1:
self.features = extra[0].split(",")
- if "extlinux" in self.features:
- msger.warning("please, use 'bootloader' installer framework " \
- "plugin name instead of 'extlinux', the latter " \
- "is obsolete and will be removed in future releases")
- # Rename all occurances of "extlinux" to "bootloader"
- self.features = [ "bootloader" if x == "extlinux" else x
- for x in self.features ]
-
return self