]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
useradd.bbclass: avoid do_rootfs error for debian package backend ChenQi/CONFFILES
authorChen Qi <Qi.Chen@windriver.com>
Wed, 17 Dec 2014 07:53:07 +0000 (02:53 -0500)
committerChen Qi <Qi.Chen@windriver.com>
Tue, 17 Feb 2015 02:05:35 +0000 (10:05 +0800)
commit87cb79df39c692388561e25890dca5b3128dc84a
treec446def017ee3e65191ee3feab27b6757b776cca
parentdcd02971b58297c5b855c023d02a68196c52a58a
useradd.bbclass: avoid do_rootfs error for debian package backend

If /etc/login.defs is treated as a configuration file, then we would meet
errors at do_rootfs time telling us that useradd/groupadd cannot execute
correctly.

This is because the dpkg handles config file specially, the login.defs
is temporarily renamed as login.defs.dpkg-new.

How ubuntu deals the user/group adding problem? They do it at postinst of the
package. And, the postinst script of a package would possibly do `chown' of
its files or directories.

The above strategy is not suitable for OE. Because we do chown in do_install
and add user/group in preinst scripts of the packages.

That's why we need this patch so that do_rootfs don't fail.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
meta/classes/useradd.bbclass