Skip to contentSkip to conversation

extrausers.bbclass: Use PACKAGE_INSTALL instead of IMAGE_INSTALL

PATCH New [email protected] 1 participant 1 message Dec 13, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 extrausers.bbclass: Use PACKAGE_INSTALL instead of IMAGE_INSTALL

From: Jackie Huang <[email protected]>

The initramfs image recipes changed to use PACKAGE_INSTALL so they will not be affected by IMAGE_INSTALL, and will cause error when inherit extrausers:

| ERROR: core-image-minimal-initramfs-1.0-r0 do_rootfs:
core-image-minimal-initramfs: usermod command did not succeed.

So use PACKAGE_INSTALL as well in extrausers.bbclass to fix it.

---
 meta/classes/extrausers.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/extrausers.bbclass +1 -1
index 43900f3..852810e 100644
@@ -15,7 +15,7 @@
 
 inherit useradd_base
 
-IMAGE_INSTALL_append = " ${@['', 'base-passwd shadow'][bool(d.getVar('EXTRA_USERS_PARAMS', True))]}"
+PACKAGE_INSTALL_append = " ${@['', 'base-passwd shadow'][bool(d.getVar('EXTRA_USERS_PARAMS', True))]}"
 
 # Image level user / group settings
 ROOTFS_POSTPROCESS_COMMAND_append = " set_user_group;"
Signature · 1 line
2.8.3