User Tools

Site Tools


oe_yp_users_groups

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
oe_yp_users_groups [2020/04/11 18:02]
rpjday
oe_yp_users_groups [2020/04/11 18:27] (current)
rpjday
Line 5: Line 5:
 <​code>​ <​code>​
 INIT_MANAGER = "​systemd"​ INIT_MANAGER = "​systemd"​
 +</​code>​
 +
 +and making use of ''​rootfs-postcommands''​.
 +
 +===== image.bbclass and IMGCLASSES =====
 +
 +<​code>​
 +# Handle inherits of any of the image classes we need
 +IMGCLASSES = "​rootfs_${IMAGE_PKGTYPE} image_types ${IMAGE_CLASSES}"​
 +# Only Linux SDKs support populate_sdk_ext,​ fall back to populate_sdk_base
 +# in the non-Linux SDK_OS case, such as mingw32
 +IMGCLASSES += "​${@['​populate_sdk_base',​ '​populate_sdk_ext'​]['​linux'​ in d.getVar("​SDK_OS"​)]}"​
 +IMGCLASSES += "​${@bb.utils.contains_any('​IMAGE_FSTYPES',​ 'live iso hddimg',​ '​image-live',​ '',​ d)}"
 +IMGCLASSES += "​${@bb.utils.contains('​IMAGE_FSTYPES',​ '​container',​ '​image-container',​ '',​ d)}"
 +IMGCLASSES += "​image_types_wic"​
 +IMGCLASSES += "​rootfs-postcommands"​
 +IMGCLASSES += "​image-postinst-intercepts"​
 +inherit ${IMGCLASSES}
 +</​code>​
 +
 +The end result:
 +
 +<​code>​
 +IMGCLASSES="​
 +  rootfs_rpm
 +  image_types
 +  qemuboot
 +  qemuboot
 +  license_image
 +  populate_sdk_ext ​  
 +  image_types_wic ​
 +  rootfs-postcommands ​
 +  image-postinst-intercepts
 +"
 </​code>​ </​code>​
oe_yp_users_groups.txt ยท Last modified: 2020/04/11 18:27 by rpjday