]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 Jan 2012 09:38:34 +0000 (09:38 +0000)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/useradd.bbclass

index ef1a9cec9f41b43176e6ebce181b9515816b6a6c..2cffbfa12cb4f2cfdb24243846f73808b4d3b5b1 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 = ""