All of lore.kernel.org
 help / color / mirror / Atom feed
* How /etc/passwd packed into my final image
@ 2013-10-16  7:01 Amit Tomer
  2013-10-16  8:20 ` Davide Soldan
  0 siblings, 1 reply; 8+ messages in thread
From: Amit Tomer @ 2013-10-16  7:01 UTC (permalink / raw)
  To: yocto@yoctoproject.org, yocto-request@yoctoproject.org

I wanted to modify the content of /etc/passwd but don't know how
/etc/passwd files is packed into final image

After the build process ,passwd file goes to

"tmp/work/k2-poky-linux-gnueabi/image-k2/1.0-r0/rootfs/etc/passwd"

this loaction

Now I see image-k2.bb file but could not find any rule that will pack
passwd file to
final image.

Can anybody how it is packed and way to modify it.

Thanks
Amit


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

* Re: How /etc/passwd packed into my final image
  2013-10-16  7:01 How /etc/passwd packed into my final image Amit Tomer
@ 2013-10-16  8:20 ` Davide Soldan
  2013-10-16 10:33   ` Paul Eggleton
  0 siblings, 1 reply; 8+ messages in thread
From: Davide Soldan @ 2013-10-16  8:20 UTC (permalink / raw)
  To: yocto; +Cc: yocto-request@yoctoproject.org, Amit Tomer

In data mercoledì 16 ottobre 2013 00:01:13, Amit Tomer ha scritto:
> I wanted to modify the content of /etc/passwd but don't know how
> /etc/passwd files is packed into final image
> 
> After the build process ,passwd file goes to
> 
> "tmp/work/k2-poky-linux-gnueabi/image-k2/1.0-r0/rootfs/etc/passwd"
> 
> this loaction
> 
> Now I see image-k2.bb file but could not find any rule that will pack
> passwd file to
> final image.
> 
> Can anybody how it is packed and way to modify it.
> 
> Thanks
> Amit
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
Hi,
I think that the recipe that creates passwd file is under poky/meta/recipes-core/base-passwd (I'm on dora branch).
Maybe with a bbappend of that recipe you can change the passwd file with yours...
Cheers
Davide


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

* Re: How /etc/passwd packed into my final image
  2013-10-16  8:20 ` Davide Soldan
@ 2013-10-16 10:33   ` Paul Eggleton
  2013-10-16 10:57     ` Amit Tomer
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Eggleton @ 2013-10-16 10:33 UTC (permalink / raw)
  To: Amit Tomer; +Cc: yocto

On Wednesday 16 October 2013 10:20:24 Davide Soldan wrote:
> In data mercoledì 16 ottobre 2013 00:01:13, Amit Tomer ha scritto:
> > I wanted to modify the content of /etc/passwd but don't know how
> > /etc/passwd files is packed into final image
> > 
> > After the build process ,passwd file goes to
> > 
> > "tmp/work/k2-poky-linux-gnueabi/image-k2/1.0-r0/rootfs/etc/passwd"
> > 
> > this loaction
> > 
> > Now I see image-k2.bb file but could not find any rule that will pack
> > passwd file to
> > final image.
> > 
> > Can anybody how it is packed and way to modify it.
> > 
> > Thanks
> > Amit
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
> 
> Hi,
> I think that the recipe that creates passwd file is under
> poky/meta/recipes-core/base-passwd (I'm on dora branch). Maybe with a
> bbappend of that recipe you can change the passwd file with yours... Cheers

Rather than modifying it in base-passwd, with master or 1.5 I'd recommend 
using extrausers.bbclass / EXTRA_USERS_PARAMS (see meta-
yocto/conf/local.conf.sample.extended for an example of how to use it).

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: How /etc/passwd packed into my final image
  2013-10-16 10:33   ` Paul Eggleton
@ 2013-10-16 10:57     ` Amit Tomer
  2013-10-16 11:13       ` Amit Tomer
  0 siblings, 1 reply; 8+ messages in thread
From: Amit Tomer @ 2013-10-16 10:57 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto@yoctoproject.org

Thanks Paul for your suggestion
Method of modifying in base-passws is somehow not working for us
Let us try your suggestion.

On Wed, Oct 16, 2013 at 4:03 PM, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
> On Wednesday 16 October 2013 10:20:24 Davide Soldan wrote:
>> In data mercoledì 16 ottobre 2013 00:01:13, Amit Tomer ha scritto:
>> > I wanted to modify the content of /etc/passwd but don't know how
>> > /etc/passwd files is packed into final image
>> >
>> > After the build process ,passwd file goes to
>> >
>> > "tmp/work/k2-poky-linux-gnueabi/image-k2/1.0-r0/rootfs/etc/passwd"
>> >
>> > this loaction
>> >
>> > Now I see image-k2.bb file but could not find any rule that will pack
>> > passwd file to
>> > final image.
>> >
>> > Can anybody how it is packed and way to modify it.
>> >
>> > Thanks
>> > Amit
>> > _______________________________________________
>> > yocto mailing list
>> > yocto@yoctoproject.org
>> > https://lists.yoctoproject.org/listinfo/yocto
>>
>> Hi,
>> I think that the recipe that creates passwd file is under
>> poky/meta/recipes-core/base-passwd (I'm on dora branch). Maybe with a
>> bbappend of that recipe you can change the passwd file with yours... Cheers
>
> Rather than modifying it in base-passwd, with master or 1.5 I'd recommend
> using extrausers.bbclass / EXTRA_USERS_PARAMS (see meta-
> yocto/conf/local.conf.sample.extended for an example of how to use it).
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre


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

* Re: How /etc/passwd packed into my final image
  2013-10-16 10:57     ` Amit Tomer
@ 2013-10-16 11:13       ` Amit Tomer
  2013-10-16 11:31         ` Amit Tomer
  0 siblings, 1 reply; 8+ messages in thread
From: Amit Tomer @ 2013-10-16 11:13 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto@yoctoproject.org

Hi Davide

We have added folder base-passwd to

 meta-xyz/recipes-core/base-passwd

and inside this foler we placed two files one is
base-passwd_3.5.26.bbappend and other is customized passwd file

below is the content of base-passwd_3.5.26.bbappend

FILESEXTRAPATHS_prepend := "${THISDIR}:"
SRC_URI += "file://passwd"

do_install_append_k2() {
                    install -m 0644 ${WORKDIR}/passwd
${STAGING_DIR_TARGET}${sysconfdir}/passwd
}

But after successful compilation my customized passwd file is not
reflected in /rootfs/etc folder

Any Suggestion where we are doing wrong.

Thanks
Amit

On Wed, Oct 16, 2013 at 4:27 PM, Amit Tomer <amittomer25@gmail.com> wrote:
> Thanks Paul for your suggestion
> Method of modifying in base-passws is somehow not working for us
> Let us try your suggestion.
>
> On Wed, Oct 16, 2013 at 4:03 PM, Paul Eggleton
> <paul.eggleton@linux.intel.com> wrote:
>> On Wednesday 16 October 2013 10:20:24 Davide Soldan wrote:
>>> In data mercoledì 16 ottobre 2013 00:01:13, Amit Tomer ha scritto:
>>> > I wanted to modify the content of /etc/passwd but don't know how
>>> > /etc/passwd files is packed into final image
>>> >
>>> > After the build process ,passwd file goes to
>>> >
>>> > "tmp/work/k2-poky-linux-gnueabi/image-k2/1.0-r0/rootfs/etc/passwd"
>>> >
>>> > this loaction
>>> >
>>> > Now I see image-k2.bb file but could not find any rule that will pack
>>> > passwd file to
>>> > final image.
>>> >
>>> > Can anybody how it is packed and way to modify it.
>>> >
>>> > Thanks
>>> > Amit
>>> > _______________________________________________
>>> > yocto mailing list
>>> > yocto@yoctoproject.org
>>> > https://lists.yoctoproject.org/listinfo/yocto
>>>
>>> Hi,
>>> I think that the recipe that creates passwd file is under
>>> poky/meta/recipes-core/base-passwd (I'm on dora branch). Maybe with a
>>> bbappend of that recipe you can change the passwd file with yours... Cheers
>>
>> Rather than modifying it in base-passwd, with master or 1.5 I'd recommend
>> using extrausers.bbclass / EXTRA_USERS_PARAMS (see meta-
>> yocto/conf/local.conf.sample.extended for an example of how to use it).
>>
>> Cheers,
>> Paul
>>
>> --
>>
>> Paul Eggleton
>> Intel Open Source Technology Centre


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

* Re: How /etc/passwd packed into my final image
  2013-10-16 11:13       ` Amit Tomer
@ 2013-10-16 11:31         ` Amit Tomer
  2013-10-16 11:47           ` Paul Eggleton
  0 siblings, 1 reply; 8+ messages in thread
From: Amit Tomer @ 2013-10-16 11:31 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto@yoctoproject.org

Hi Paul

I trying adding INHERIT += "extrausers" to my local.conf file but getting

ERROR: Unable to parse extrausers: ParseError in configuration
INHERITs: Could not inherit file classes/extrausers.bbclass



On Wed, Oct 16, 2013 at 4:43 PM, Amit Tomer <amittomer25@gmail.com> wrote:
> Hi Davide
>
> We have added folder base-passwd to
>
>  meta-xyz/recipes-core/base-passwd
>
> and inside this foler we placed two files one is
> base-passwd_3.5.26.bbappend and other is customized passwd file
>
> below is the content of base-passwd_3.5.26.bbappend
>
> FILESEXTRAPATHS_prepend := "${THISDIR}:"
> SRC_URI += "file://passwd"
>
> do_install_append_k2() {
>                     install -m 0644 ${WORKDIR}/passwd
> ${STAGING_DIR_TARGET}${sysconfdir}/passwd
> }
>
> But after successful compilation my customized passwd file is not
> reflected in /rootfs/etc folder
>
> Any Suggestion where we are doing wrong.
>
> Thanks
> Amit
>
> On Wed, Oct 16, 2013 at 4:27 PM, Amit Tomer <amittomer25@gmail.com> wrote:
>> Thanks Paul for your suggestion
>> Method of modifying in base-passws is somehow not working for us
>> Let us try your suggestion.
>>
>> On Wed, Oct 16, 2013 at 4:03 PM, Paul Eggleton
>> <paul.eggleton@linux.intel.com> wrote:
>>> On Wednesday 16 October 2013 10:20:24 Davide Soldan wrote:
>>>> In data mercoledì 16 ottobre 2013 00:01:13, Amit Tomer ha scritto:
>>>> > I wanted to modify the content of /etc/passwd but don't know how
>>>> > /etc/passwd files is packed into final image
>>>> >
>>>> > After the build process ,passwd file goes to
>>>> >
>>>> > "tmp/work/k2-poky-linux-gnueabi/image-k2/1.0-r0/rootfs/etc/passwd"
>>>> >
>>>> > this loaction
>>>> >
>>>> > Now I see image-k2.bb file but could not find any rule that will pack
>>>> > passwd file to
>>>> > final image.
>>>> >
>>>> > Can anybody how it is packed and way to modify it.
>>>> >
>>>> > Thanks
>>>> > Amit
>>>> > _______________________________________________
>>>> > yocto mailing list
>>>> > yocto@yoctoproject.org
>>>> > https://lists.yoctoproject.org/listinfo/yocto
>>>>
>>>> Hi,
>>>> I think that the recipe that creates passwd file is under
>>>> poky/meta/recipes-core/base-passwd (I'm on dora branch). Maybe with a
>>>> bbappend of that recipe you can change the passwd file with yours... Cheers
>>>
>>> Rather than modifying it in base-passwd, with master or 1.5 I'd recommend
>>> using extrausers.bbclass / EXTRA_USERS_PARAMS (see meta-
>>> yocto/conf/local.conf.sample.extended for an example of how to use it).
>>>
>>> Cheers,
>>> Paul
>>>
>>> --
>>>
>>> Paul Eggleton
>>> Intel Open Source Technology Centre


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

* Re: How /etc/passwd packed into my final image
  2013-10-16 11:31         ` Amit Tomer
@ 2013-10-16 11:47           ` Paul Eggleton
  2013-10-16 11:50             ` Amit Tomer
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Eggleton @ 2013-10-16 11:47 UTC (permalink / raw)
  To: Amit Tomer; +Cc: yocto@yoctoproject.org

Hi Amit,

On Wednesday 16 October 2013 17:01:11 Amit Tomer wrote:
> I trying adding INHERIT += "extrausers" to my local.conf file but getting
> 
> ERROR: Unable to parse extrausers: ParseError in configuration
> INHERITs: Could not inherit file classes/extrausers.bbclass

OK, I guess you are using an older version that does not have this facility.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: How /etc/passwd packed into my final image
  2013-10-16 11:47           ` Paul Eggleton
@ 2013-10-16 11:50             ` Amit Tomer
  0 siblings, 0 replies; 8+ messages in thread
From: Amit Tomer @ 2013-10-16 11:50 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto@yoctoproject.org

Hmm..Paul could you guide us for other way  Method of modifying in base-passwd
Why our changes are not reflected there?

On Wed, Oct 16, 2013 at 5:17 PM, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
> Hi Amit,
>
> On Wednesday 16 October 2013 17:01:11 Amit Tomer wrote:
>> I trying adding INHERIT += "extrausers" to my local.conf file but getting
>>
>> ERROR: Unable to parse extrausers: ParseError in configuration
>> INHERITs: Could not inherit file classes/extrausers.bbclass
>
> OK, I guess you are using an older version that does not have this facility.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre


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

end of thread, other threads:[~2013-10-16 11:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-16  7:01 How /etc/passwd packed into my final image Amit Tomer
2013-10-16  8:20 ` Davide Soldan
2013-10-16 10:33   ` Paul Eggleton
2013-10-16 10:57     ` Amit Tomer
2013-10-16 11:13       ` Amit Tomer
2013-10-16 11:31         ` Amit Tomer
2013-10-16 11:47           ` Paul Eggleton
2013-10-16 11:50             ` Amit Tomer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.