[Buildroot] add user script to /etc/rc before rootfs is created

Yann E. MORIN yann.morin.1998 at free.fr
Fri Dec 18 22:32:34 UTC 2015


Henry, all,

On 2015-12-18 21:58 +0000, hong zhang spake thusly:
> List,
> I add user script to /etc/rc/... so that the script can be executed right after kernel is up.
> What I am doing now is:
> After building first rootfs, expand rootfs and add my script to /etc/rc... area.
> Is it possible to add my script to buildroot before rootfs is created?

Yes, this is covered in the manual, see;
    https://buildroot.org/downloads/manual/manual.html#rootfs-custom

Regards,
Yann E. MORIN.

> ---henry

> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot


-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



More information about the buildroot mailing list