From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 37BE8E01653 for ; Thu, 10 Oct 2013 20:06:52 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.5/8.14.3) with ESMTP id r9B36pim022869 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 10 Oct 2013 20:06:51 -0700 (PDT) Received: from [128.224.162.213] (128.224.162.213) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 10 Oct 2013 20:06:51 -0700 Message-ID: <52576B65.3080704@windriver.com> Date: Fri, 11 Oct 2013 11:07:17 +0800 From: ChenQi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 MIME-Version: 1.0 To: References: <7BDD69127112414F90CF3FED4711BF150D15A47EB5@IAD2MBX05.mex02.mlsrvr.com> In-Reply-To: <7BDD69127112414F90CF3FED4711BF150D15A47EB5@IAD2MBX05.mex02.mlsrvr.com> X-Originating-IP: [128.224.162.213] Subject: Re: Add single user X-BeenThere: poky@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Poky build system developer discussion & patch submission for meta-yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Oct 2013 03:06:53 -0000 Content-Type: multipart/alternative; boundary="------------040103070801010304050107" --------------040103070801010304050107 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit On 10/11/2013 06:06 AM, Michael Davis wrote: > > I am attempting to add a single user to my poky build. I am trying to > follow the useradd-example.bb layout but I cannot get bitbake to like > it. My bb file looks like so: > > SUMMARY = "Add a user" > > DESCRIPTION = "This recipe will add a new user" > > PR = "r0" > > LICENSE = "MIT" > > LIC_FILES_CHKSUM = > "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" > > S = "${WORKDIR}" > > inherit useradd > > USERADD_PACKAGES = "${PN}" > > USERADD_PARAM_${PN} = "--disabled-password hal" > > do_install () { > > chown -R hal ${D}${datadir}/hal > > } > > FILES_${PN} = "${datadir}/hal/*" > > I have the useradd package specified as a dependency for a package > group which I am installing for my image. When I bake, it attempts > do_rootfs but fails and spits out a huge log after which it simple > states that it couldn't satisfy dependencies for my package group and > and points the the useradd package. Is there any obvious reason why > such a simple recipe like this would not work? Thanks > Are you sure your package is not empty? Maybe you want this in your recipe. ALLOW_EMPTY_${PN} = "1" Also, if you're only trying to add a user, use EXTRA_USERS_PARAMS in your conf file (assume you're using poky/master, i'm not sure whether dylan has this feature). Best Regards, Chen Qi > -Mike > > > > _______________________________________________ > poky mailing list > poky@yoctoproject.org > https://lists.yoctoproject.org/listinfo/poky --------------040103070801010304050107 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit
On 10/11/2013 06:06 AM, Michael Davis wrote:

I am attempting to add a single user to my poky build.  I am trying to follow the useradd-example.bb layout but I cannot get bitbake to like it.  My bb file looks like so:

 

SUMMARY = "Add a user"

DESCRIPTION = "This recipe will add a new user"

 

PR = "r0"

LICENSE = "MIT"

LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"

 

S = "${WORKDIR}"

 

inherit useradd

 

USERADD_PACKAGES = "${PN}"

 

USERADD_PARAM_${PN} = "--disabled-password hal"

 

 

do_install () {

 

           chown -R hal ${D}${datadir}/hal

}

 

FILES_${PN} = "${datadir}/hal/*"

 

I have the useradd package specified as a dependency for a package group which I am installing for my image.  When I bake, it attempts do_rootfs but fails and spits out a huge log after which it simple states that it couldn’t satisfy dependencies for my package group and and points the the useradd package.  Is there any obvious reason why such a simple recipe like this would not work?  Thanks

 


Are you sure your package is not empty?
Maybe you want this in your recipe.
ALLOW_EMPTY_${PN} = "1"

Also, if you're only trying to add a user, use EXTRA_USERS_PARAMS in your conf file (assume you're using poky/master, i'm not sure whether dylan has this feature).

Best Regards,
Chen Qi

-Mike



_______________________________________________
poky mailing list
poky@yoctoproject.org
https://lists.yoctoproject.org/listinfo/poky

--------------040103070801010304050107--