[Buildroot] [PATCH] Makefile: check rootfs overlays with BR2_ROOTFS_MERGED_USR enabled

Peter Korsgaard peter at korsgaard.com
Sat May 5 14:41:55 UTC 2018


>>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:

 > Carlos, All,
 > On 2018-05-03 09:19 -0300, Carlos Santos spake thusly:
 >> Since commit 0db34529f48 we use rsync with the --keep-dirlinks option to
 >> prevent overlays from accidentally overwriding /{usr,bin,sbin,lib} links
 >> when BR2_ROOTFS_MERGED_USR option is enabled. Unfortunately this also
 >> prevents replacing a symlink by a directory on purpose (e.g. /var/log,
 >> to persist system logs).

 > In that case, I suggest your use a post-build script instead.

 > In facct, I think that any modifications that change the layout of the
 > filesystem should be done as a post-build script rather than an overlay.

Why? Overlays is the the recommended way to add/override stuff, and the
'everything-you-put-in-the-overlay-will-override-the-buildroot-defaults'
is a pretty nice and easy to understand behaviour.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list