From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Calfee Date: Fri, 10 Dec 2010 08:34:57 -0800 (PST) Subject: [Buildroot] skeleton updates In-Reply-To: <002a01cb9875$c5f3b5b0$51db2110$@zuerker.org> References: <158894.53583.qm@web58205.mail.re3.yahoo.com> <002a01cb9875$c5f3b5b0$51db2110$@zuerker.org> Message-ID: <695339.53017.qm@web58207.mail.re3.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net ----- Original Message ---- > From: Heiko Zuerker > > From: buildroot-bounces at busybox.net [mailto:buildroot- > > Subject: [Buildroot] skeleton updates > > > > Hi Guys, > > > > I am trying to follow up with Marcus Osdoba's work on dockstar and get > > something ready to submit to buildroot. > > > > I am having a real problem figuring out how stuff makes it into the the > final > > etc directory. My patch script in the > > target/device/sheevaplug/SeagateDockStar/patchrootfs.sh copies new files > > (inittab and shadow into output/target/skeleton/etc/ and this happens on > > re-invocation of make. However when I look at the rootfs.tar file the > > updated inittab is not there. Can anyone describe how the various /etc/ > files > > in fs/skeleton and target/device/...skeleton and the final patch file get > to the > > final output image files. > > The best place to add these customizations is BR2_ROOTFS_POST_BUILD_SCRIPT, > which you can find under "Target filesystem options" in menuconfig. > This script is called after everything is build, but before the target > filesystem is generated. > > Here's the example I use: > BR2_ROOTFS_POST_BUILD_SCRIPT="$(TOPDIR)/$(BOARD_PATH)/customize_target.sh" > Hi thanks for the comment. I am using that script and it gets invoked during the build. Investigating further, I was copying into the wrong output directory. The way I implemented rootfs updates, is I just have a device directory with the skeleton of things I want installed, and it gets copied over the default stuff from the build. In the case of the default all I am changing is inittab and shadow, but any file could be added there to replace or add to the default fs/skeleton.