mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
package/systemd: add a menu entry to enable portable services
Signed-off-by: Francois Gervais <fgervais@distech-controls.com> Reviewed-by: Norbert Lange <nolange79@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle (Essensium/Mind)
parent
1294447142
commit
70f35db9f7
@@ -343,6 +343,24 @@ comment "polkit support needs a toolchain with C++, wchar, NPTL, gcc >= 4.9"
|
|||||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
|
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
|
||||||
!BR2_USE_WCHAR
|
!BR2_USE_WCHAR
|
||||||
|
|
||||||
|
config BR2_PACKAGE_SYSTEMD_PORTABLED
|
||||||
|
bool "enable portable services"
|
||||||
|
help
|
||||||
|
Portable services are systemd services that can be dynamically
|
||||||
|
attached and detached from the system.
|
||||||
|
|
||||||
|
These services must come with their own root directory which
|
||||||
|
they are bound to through an automatically generated drop-in.
|
||||||
|
|
||||||
|
They also have restrictions applied by the host system in the
|
||||||
|
form of profiles.
|
||||||
|
|
||||||
|
This functionality is provided by the system service
|
||||||
|
systemd-portabled along with the corresponding CLI
|
||||||
|
portablectl.
|
||||||
|
|
||||||
|
https://systemd.io/PORTABLE_SERVICES/
|
||||||
|
|
||||||
config BR2_PACKAGE_SYSTEMD_QUOTACHECK
|
config BR2_PACKAGE_SYSTEMD_QUOTACHECK
|
||||||
bool "enable quotacheck tools"
|
bool "enable quotacheck tools"
|
||||||
help
|
help
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ SYSTEMD_CONF_OPTS += \
|
|||||||
-Dman=false \
|
-Dman=false \
|
||||||
-Dmount-path=/usr/bin/mount \
|
-Dmount-path=/usr/bin/mount \
|
||||||
-Dnss-systemd=true \
|
-Dnss-systemd=true \
|
||||||
-Dportabled=false \
|
|
||||||
-Dquotacheck-path=/usr/sbin/quotacheck \
|
-Dquotacheck-path=/usr/sbin/quotacheck \
|
||||||
-Dquotaon-path=/usr/sbin/quotaon \
|
-Dquotaon-path=/usr/sbin/quotaon \
|
||||||
-Drootlibdir='/usr/lib' \
|
-Drootlibdir='/usr/lib' \
|
||||||
@@ -417,6 +416,12 @@ else
|
|||||||
SYSTEMD_CONF_OPTS += -Dpolkit=false
|
SYSTEMD_CONF_OPTS += -Dpolkit=false
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_SYSTEMD_PORTABLED),y)
|
||||||
|
SYSTEMD_CONF_OPTS += -Dportabled=true
|
||||||
|
else
|
||||||
|
SYSTEMD_CONF_OPTS += -Dportabled=false
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y)
|
ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y)
|
||||||
SYSTEMD_CONF_OPTS += -Dnetworkd=true
|
SYSTEMD_CONF_OPTS += -Dnetworkd=true
|
||||||
SYSTEMD_NETWORKD_USER = systemd-network -1 systemd-network -1 * - - - systemd Network Management
|
SYSTEMD_NETWORKD_USER = systemd-network -1 systemd-network -1 * - - - systemd Network Management
|
||||||
|
|||||||
Reference in New Issue
Block a user