Differences

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

Link to this comparison view

Next revision
Previous revision
oe_yp_users_groups [2020/04/11 18:00] – created rpjdayoe_yp_users_groups [2020/04/11 18:27] (current) rpjday
Line 1: Line 1:
 ===== Overview ===== ===== Overview =====
  
-Customizing users and groups on a systemd-based (QEMU) system.+Customizing users and groups on a systemd-based (QEMU) system
 + 
 +<code> 
 +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>
  • oe_yp_users_groups.1586628042.txt.gz
  • Last modified: 2020/04/11 18:00
  • by rpjday