Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] useradd.bbclass: use correct value for $D in postinst functions
@ 2011-09-07 20:20 Phil Blundell
  2011-09-08  3:55 ` Saul Wold
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Blundell @ 2011-09-07 20:20 UTC (permalink / raw)
  To: openembedded-core

This corrects the location of the password file used during package installation. 

See http://lists.linuxtogo.org/pipermail/openembedded-core/2011-September/009183.html and subsequent discussion.

Signed-off-by: Phil Blundell <philb@gnu.org>
---
 meta/classes/useradd.bbclass |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index 5f5b68d..1e03a04 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -15,8 +15,8 @@ SYSROOT=""
 
 if test "x$D" != "x"; then
 	# Installing into a sysroot
-	SYSROOT="${STAGING_DIR_TARGET}"
-	OPT="--root ${STAGING_DIR_TARGET}"
+	SYSROOT="$D"
+	OPT="--root $D"
 
 	# Add groups and users defined for all recipe packages
 	GROUPADD_PARAM="${@get_all_cmd_params(d, 'group')}"
@@ -79,7 +79,7 @@ useradd_sysroot () {
 
 	# Explicitly set $D since it isn't set to anything
 	# before do_install
-	D=${D}
+	D=${STAGING_DIR_TARGET}
 	useradd_preinst
 }
 
-- 
1.7.4.1






^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] useradd.bbclass: use correct value for $D in postinst functions
  2011-09-07 20:20 [PATCH] useradd.bbclass: use correct value for $D in postinst functions Phil Blundell
@ 2011-09-08  3:55 ` Saul Wold
  0 siblings, 0 replies; 2+ messages in thread
From: Saul Wold @ 2011-09-08  3:55 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Phil Blundell

On 09/07/2011 01:20 PM, Phil Blundell wrote:
> This corrects the location of the password file used during package installation.
>
> See http://lists.linuxtogo.org/pipermail/openembedded-core/2011-September/009183.html and subsequent discussion.
>
> Signed-off-by: Phil Blundell<philb@gnu.org>
> ---
>   meta/classes/useradd.bbclass |    6 +++---
>   1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
> index 5f5b68d..1e03a04 100644
> --- a/meta/classes/useradd.bbclass
> +++ b/meta/classes/useradd.bbclass
> @@ -15,8 +15,8 @@ SYSROOT=""
>
>   if test "x$D" != "x"; then
>   	# Installing into a sysroot
> -	SYSROOT="${STAGING_DIR_TARGET}"
> -	OPT="--root ${STAGING_DIR_TARGET}"
> +	SYSROOT="$D"
> +	OPT="--root $D"
>
>   	# Add groups and users defined for all recipe packages
>   	GROUPADD_PARAM="${@get_all_cmd_params(d, 'group')}"
> @@ -79,7 +79,7 @@ useradd_sysroot () {
>
>   	# Explicitly set $D since it isn't set to anything
>   	# before do_install
> -	D=${D}
> +	D=${STAGING_DIR_TARGET}
>   	useradd_preinst
>   }
>

Merged into OE-Core

Thanks
	Sau!



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-08  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-07 20:20 [PATCH] useradd.bbclass: use correct value for $D in postinst functions Phil Blundell
2011-09-08  3:55 ` Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox