]> code.ossystems Code Review - openembedded-core.git/commitdiff
useradd.bbclass: Execute user addition code before do_package_setscene, not after...
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jan 2012 14:41:51 +0000 (14:41 +0000)
committerJoshua Lock <josh@linux.intel.com>
Tue, 22 May 2012 05:03:06 +0000 (22:03 -0700)
The user addition needs to happen before the do_package files are extracted
by do_package_setscene since those are the ones we need to preserve the file
ownership information for. This patch ensures this happens.

(From OE-Core rev: 34282c1b996ef008384af456735692d66ddabc13)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Joshua Lock <josh@linux.intel.com>
meta/classes/useradd.bbclass

index 4e4ac032e4a53e192d17976f4f998e9268d62032..27647cbc8b0e01eeae20780b042d1209930ccf5d 100644 (file)
@@ -90,7 +90,7 @@ useradd_sysroot () {
 }
 
 useradd_sysroot_sstate () {
-       if [ "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]
+       if [ "${BB_CURRENTTASK}" = "package_setscene" ]
        then
                useradd_sysroot
        fi
@@ -100,7 +100,7 @@ do_install[prefuncs] += "${SYSROOTFUNC}"
 SYSROOTFUNC = "useradd_sysroot"
 SYSROOTFUNC_virtclass-native = ""
 SYSROOTFUNC_virtclass-nativesdk = ""
-SSTATEPOSTINSTFUNCS += "${SYSROOTPOSTFUNC}"
+SSTATEPREINSTFUNCS += "${SYSROOTPOSTFUNC}"
 SYSROOTPOSTFUNC = "useradd_sysroot_sstate"
 SYSROOTPOSTFUNC_virtclass-native = ""
 SYSROOTPOSTFUNC_virtclass-nativesdk = ""