Ivan, "poky/meta-skeleton/recipes-skeleton/useradd/useradd-example.bb" should be helpful for you.
Best Regards, Zhenhua > -----Original Message----- > From: Mercier Ivan [mailto:[email protected]] > Sent: Wednesday, August 28, 2013 2:45 PM > To: Luo Zhenhua-B19537 > Cc: [email protected]; [email protected] > Subject: Re: [meta-freescale] How to build a custom ramdisk image > > Thanks for your Response Zhenhua, > do you know how to add or modify user account? > > Best Regards, > > Ivan > > 2013/8/23 Luo Zhenhua-B19537 <[email protected]>: > >> -----Original Message----- > >> From: Mercier Ivan [mailto:[email protected]] > >> Sent: Friday, August 23, 2013 3:19 PM > >> > >> there is no way to edit files in the root filesystem? like > >> /etc/hostname... > > [Luo Zhenhua-B19537] No, we can change such files. > > > >> How do I know which file belong to which package? > >> and How do I know where is the package directory? > > [Luo Zhenhua-B19537] "find/grep" should be useful to get the answer. > For the specific case you mentioned, refer to meta-fsl- > networking/recipes-append/sysvinit/files/auto-detect-hostname.patch. > > > > > > Best Regards, > > > > Zhenhua > > > >> thanks a lot > >> > >> 2013/8/23 Luo Zhenhua-B19537 <[email protected]>: > >> > Hi Ivan, > >> > > >> > "build_p3041ds_release/tmp/work/p3041ds-fsl_networking-linux/fsl-im > >> > age- > >> core/1.0-r20/rootfs" is removed when you run "bitbake > >> fsl-image-core", and the folder will be recreated, so modification in > >> the folder is missing. > >> > > >> > You need to do the modification in corresponding recipe folder of > >> > the > >> package, e.g. interfaces is in meta-fsl-ppc/recipes-core/init- > >> ifupdown/files/. > >> > > >> > You can rebuild the modified package to ensure the modification > >> > takes > >> effect. > >> > * bitbake init-ifupdown -c cleansstate > >> > * bitbake fsl-image-core > >> > > >> > > >> > Best Regards, > >> > > >> > Zhenhua > >> > > >> >> -----Original Message----- > >> >> From: [email protected] > >> >> [mailto:meta-freescale- [email protected]] On Behalf Of > >> >> Mercier Ivan > >> >> Sent: Thursday, August 22, 2013 4:55 PM > >> >> To: [email protected]; [email protected] > >> >> Subject: [meta-freescale] How to build a custom ramdisk image > >> >> > >> >> Hi everybody, > >> >> > >> >> I'm working on an yocto distrib with a freescale p3041 based board. > >> >> I would like to modify the root file system, like hostname,udev > >> >> rules and build my own ramdisk image. > >> >> I use to create my image by > >> >> $ bitbake fsl-image-core > >> >> > >> >> is it corret? > >> >> > >> >> should I modidy fsl-image-core.bb? > >> >> > >> >> I try to modify files in > >> >> build_p3041ds_release/tmp/work/p3041ds-fsl_networking-linux/fsl-im > >> >> age > >> >> - > >> >> core/1.0-r20/rootfs > >> >> > >> >> but modifications are overwrited > >> >> > >> >> can anybody help me? > >> >> > >> >> thanks a lot > >> >> _______________________________________________ > >> >> meta-freescale mailing list > >> >> [email protected] > >> >> https://lists.yoctoproject.org/listinfo/meta-freescale > >> > > >> > > > > > _______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
