wic: use new kickstart parser
Used KickStart parser class instead of pykickstart API. This commit breaks wic as data structures and field names provided by new API are a bit different from old ones. This issue will be addressed in the following commits. (From OE-Core rev: f72439d321220b724bfe2b4a92fed46c2c19fb3f) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f572f44214
commit
c15ea825e7
|
@ -17,8 +17,8 @@
|
|||
|
||||
import os
|
||||
|
||||
from wic.kickstart import KickStart
|
||||
from wic import msger
|
||||
from wic import kickstart
|
||||
from wic.utils import misc
|
||||
|
||||
|
||||
|
@ -87,7 +87,7 @@ class ConfigMgr(object):
|
|||
if not ksconf:
|
||||
return
|
||||
|
||||
ksobj = kickstart.read_kickstart(ksconf)
|
||||
ksobj = KickStart(ksconf)
|
||||
|
||||
self.create['ks'] = ksobj
|
||||
self.create['name'] = os.path.splitext(os.path.basename(ksconf))[0]
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
import os
|
||||
import shutil
|
||||
|
||||
from wic import kickstart, msger
|
||||
from wic import msger
|
||||
from wic.utils import fs_related
|
||||
from wic.utils.oe.misc import get_bitbake_var
|
||||
from wic.utils.partitionedfs import Image
|
||||
|
|
Loading…
Reference in New Issue