[Buildroot] Add crontab entries from package

Peter Seiderer ps.report at gmx.net
Thu Nov 26 19:05:37 UTC 2020


Hello Sven,

On Thu, 26 Nov 2020 11:03:00 +0100, Sven Klomp <mail at klomp.eu> wrote:

> Hello,
>
> I want to add entries to /etc/crontabs/root.
> I know I can add abritary scripts to |BR2_ROOTFS_POST_BUILD_SCRIPT| to
> change files. However, as the crontab entry depends on the package, I
> want to change the file from within thepackage and not globally. How is
> this possible?
> The documentation of |BR2_ROOTFS_POST_BUILD_SCRIPT |makes me think there
> must be another solution:
> "You should, however, use this feature with care. Whenever you find that
> a certain package generates wrong or unneeded files, you should fix that
> package rather than work around it with some post-build cleanup scripts."

Maybe use a root filesystem overlay/BR2_ROOTFS_OVERLAY (see [1])...

Regards,
Peter

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


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



More information about the buildroot mailing list