]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
extrausers.bbclass: Use PACKAGE_INSTALL instead of IMAGE_INSTALL
authorJackie Huang <jackie.huang@windriver.com>
Tue, 13 Dec 2016 08:24:48 +0000 (16:24 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Dec 2016 08:30:00 +0000 (08:30 +0000)
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.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/extrausers.bbclass

index 43900f359d53d245c16de025a149b7628a851d82..852810e86669c6f7c715c5f78541c167e865349c 100644 (file)
@@ -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;"