system: introduce a choice for /var management
Currently, we have a single solution to handle the /var content on a read-only root filesystem, and users can opt out of using it. We're going to introduce another solution (based on an overlayfs), which is incompatible with using the factory, so we'll have a choice of three mutually exclusive options. Introduce that choice now with just the existing /var factory, and a new option to opt out of it. Signed-off-by: Yann E. MORIN <yann.morin@orange.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Norbert Lange <nolange79@gmail.com> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Cc: Romain Naour <romain.naour@smile.fr> Cc : Jérémy Rosen <jeremy.rosen@smile.fr> Acked-by: Norbert Lange <nolange79@gmail.com> Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
This commit is contained in:
parent
1316b4ef31
commit
4c185a42fd
@ -159,10 +159,16 @@ endchoice
|
||||
|
||||
if BR2_INIT_SYSTEMD
|
||||
|
||||
config BR2_INIT_SYSTEMD_VAR_FACTORY
|
||||
bool "build a factory to populate a tmpfs on /var"
|
||||
default y # legacy
|
||||
choice
|
||||
bool "/var management"
|
||||
default BR2_INIT_SYSTEMD_VAR_FACTORY # legacy
|
||||
depends on !BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
|
||||
help
|
||||
Select how Buildroot provides a read-write /var when the
|
||||
rootfs is not remounted read-write.
|
||||
|
||||
config BR2_INIT_SYSTEMD_VAR_FACTORY
|
||||
bool "build a factory to populate a tmpfs"
|
||||
help
|
||||
Build a factory of the content of /var as installed by
|
||||
packages, mount a tmpfs on /var at runtime, so that
|
||||
@ -184,6 +190,16 @@ config BR2_INIT_SYSTEMD_VAR_FACTORY
|
||||
var.mount unit, that overrides the What and Type, and possibly
|
||||
the Options and After, fields.
|
||||
|
||||
config BR2_INIT_SYSTEMD_VAR_NONE
|
||||
bool "do nothing"
|
||||
help
|
||||
Choose this if you have custom dispositions (like one or more
|
||||
of a post-build script, a fakeroot script, systemd units, an
|
||||
initramfs, or something else) that prepare /var to be writable
|
||||
on a read-only rootfs.
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_INIT_SYSTEMD_POPULATE_TMPFILES
|
||||
bool "trigger systemd-tmpfiles during build"
|
||||
default y # legacy
|
||||
|
Loading…
Reference in New Issue
Block a user