Skip to contentSkip to conversation

Add a text file on "/tmp" directory during img compilation

Buildroot thierry.xenomai43 at yahoo.com 3 participants 3 messages Feb 14, 2017 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hello,
I would like to add a text files and bin?files on "/tmp" directory during the image making. I try to add my files on "buildroot/output/target/tmp" and make commande but it don't work. What is e good process to do this ?
RegardThierry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170214/38378754/attachment.html>

#2 lore raw
Quoted 2 lines · On 2017-02-14, <[email protected]> <[email protected]>…

I would like to add a text files and bin?files on "/tmp" directory during the image making.

https://buildroot.org/downloads/manual/manual.html#rootfs-custom

You can configure buildroot to run a script after the root tree is done but but before the final image is created by setting the BR2_ROOTFS_POST_BUILD_SCRIPT option. Look under

System Configuration
Custom scripts to run before creating filesystem images

In that script you can add/delete/remove files from the tree.

If all you want to do is add files, you can use the BR2_ROOTFS_OVERLAY option to point to a tree that is copied on top of the target tree.

Signature · 3 lines
Grant Edwards               grant.b.edwards        Yow! An Italian is COMBING
                                  at               his hair in suburban DES
                              gmail.com            MOINES!
#3 lore raw

Hi Grant, Thierry,

Quoted 10 lines · Grant Edwards
Quoted 2 lines · On 2017-02-14, <[email protected]> <[email protected]>…

I would like to add a text files and bin?files on "/tmp" directory during the image making.

https://buildroot.org/downloads/manual/manual.html#rootfs-custom

You can configure buildroot to run a script after the root tree is done but but before the final image is created by setting the BR2_ROOTFS_POST_BUILD_SCRIPT option. Look under

Quoted 7 lines

System Configuration
Custom scripts to run before creating filesystem images

In that script you can add/delete/remove files from the tree.

If all you want to do is add files, you can use the BR2_ROOTFS_OVERLAY option to point to a tree that is copied on top of the target tree.

That won't work with the default Buildroot configuration, since tmpfs is mounted over /tmp. You need to supply your own skeleton if you want to override this. See 'System configuration' -> 'Root FS skeleton' in menuconfig.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -