diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-26 14:41:51 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-27 09:40:07 +0000 |
| commit | 0a3a15c8dd27f27424c1d150192438df2e8fee1b (patch) | |
| tree | f69ecadedfe09733fb4aa4a08f6e438701ad18a8 /meta | |
| parent | 9a58e312ef596739923f4bc44ff8ecadaa88ddd9 (diff) | |
| download | poky-0a3a15c8dd27f27424c1d150192438df2e8fee1b.tar.gz | |
useradd.bbclass: Execute user addition code before do_package_setscene, not after do_populate_sysroot_setscene
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>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes/useradd.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass index ef1a9cec9f..2cffbfa12c 100644 --- a/meta/classes/useradd.bbclass +++ b/meta/classes/useradd.bbclass | |||
| @@ -90,7 +90,7 @@ useradd_sysroot () { | |||
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | useradd_sysroot_sstate () { | 92 | useradd_sysroot_sstate () { |
| 93 | if [ "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ] | 93 | if [ "${BB_CURRENTTASK}" = "package_setscene" ] |
| 94 | then | 94 | then |
| 95 | useradd_sysroot | 95 | useradd_sysroot |
| 96 | fi | 96 | fi |
| @@ -100,7 +100,7 @@ do_install[prefuncs] += "${SYSROOTFUNC}" | |||
| 100 | SYSROOTFUNC = "useradd_sysroot" | 100 | SYSROOTFUNC = "useradd_sysroot" |
| 101 | SYSROOTFUNC_virtclass-native = "" | 101 | SYSROOTFUNC_virtclass-native = "" |
| 102 | SYSROOTFUNC_virtclass-nativesdk = "" | 102 | SYSROOTFUNC_virtclass-nativesdk = "" |
| 103 | SSTATEPOSTINSTFUNCS += "${SYSROOTPOSTFUNC}" | 103 | SSTATEPREINSTFUNCS += "${SYSROOTPOSTFUNC}" |
| 104 | SYSROOTPOSTFUNC = "useradd_sysroot_sstate" | 104 | SYSROOTPOSTFUNC = "useradd_sysroot_sstate" |
| 105 | SYSROOTPOSTFUNC_virtclass-native = "" | 105 | SYSROOTPOSTFUNC_virtclass-native = "" |
| 106 | SYSROOTPOSTFUNC_virtclass-nativesdk = "" | 106 | SYSROOTPOSTFUNC_virtclass-nativesdk = "" |
