stx-image-list: add stx-base list
This will generate a file with the list of packages that are required by all roles, and the list will be used in anaconda kickstart files to install these packages for all roles. and there will be another list with role based packages. Story: 2009305 Task: 43677 Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Change-Id: I4b45fc503fb963b80182359d7358c820e2150801
This commit is contained in:
parent
83da256e7f
commit
bf08b7d33e
@ -15,6 +15,10 @@
|
||||
|
||||
IMAGE_LIST = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.pkglist"
|
||||
|
||||
STX_BASE_LIST = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.stx-base.pkglist"
|
||||
STX_BASE_INSTALL = "${PACKAGE_INSTALL} ${LINGUAS_INSTALL} ${IMAGE_INSTALL_DEBUGFS}"
|
||||
STX_BASE_INSTALL_remove = "${STX_AIO_PKGS}"
|
||||
|
||||
ROOTFS_POSTPROCESS_COMMAND_append = " write_image_list;"
|
||||
|
||||
python write_image_list () {
|
||||
@ -38,4 +42,19 @@ python write_image_list () {
|
||||
if os.path.lexists(pkglist_link):
|
||||
os.remove(pkglist_link)
|
||||
os.symlink(os.path.basename(image_list_file), pkglist_link)
|
||||
|
||||
stx_base_list_file = d.getVar('STX_BASE_LIST')
|
||||
|
||||
stx_base_install = d.getVar('STX_BASE_INSTALL').split()
|
||||
stx_base_install.sort()
|
||||
stx_base_install_str = '\n'.join(stx_base_install) + '\n'
|
||||
|
||||
with open(stx_base_list_file, 'w+') as stx_base_pkglist:
|
||||
stx_base_pkglist.write(stx_base_install_str)
|
||||
|
||||
if os.path.exists(stx_base_list_file):
|
||||
stx_base_link = deploy_dir + "/" + link_name + ".stx-base.pkglist"
|
||||
if os.path.lexists(stx_base_link):
|
||||
os.remove(stx_base_link)
|
||||
os.symlink(os.path.basename(stx_base_list_file), stx_base_link)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user