mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 14:01:57 -09:00
package/openrc: add split-user support
Also, introduce a new test in support/testing/tests/init/test_openrc.py that ensures split-user support works properly. Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
4a2909ea48
commit
3204b01f53
@@ -40,6 +40,12 @@ else
|
|||||||
OPENRC_CONF_OPTS += -Dpam=false
|
OPENRC_CONF_OPTS += -Dpam=false
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_ROOTFS_MERGED_USR),y)
|
||||||
|
OPENRC_CONF_OPTS += -Dsplit-usr=false
|
||||||
|
else
|
||||||
|
OPENRC_CONF_OPTS += -Dsplit-usr=true
|
||||||
|
endif
|
||||||
|
|
||||||
define OPENRC_INSTALL_SYSV_RCS_SCRIPT
|
define OPENRC_INSTALL_SYSV_RCS_SCRIPT
|
||||||
$(INSTALL) -D -m 0755 $(OPENRC_PKGDIR)/sysv-rcs \
|
$(INSTALL) -D -m 0755 $(OPENRC_PKGDIR)/sysv-rcs \
|
||||||
$(TARGET_DIR)/etc/init.d/sysv-rcs
|
$(TARGET_DIR)/etc/init.d/sysv-rcs
|
||||||
|
|||||||
@@ -44,3 +44,16 @@ class TestInitSystemOpenrcRwFull(InitSystemOpenrcBase):
|
|||||||
def test_run(self):
|
def test_run(self):
|
||||||
self.start_emulator("ext2")
|
self.start_emulator("ext2")
|
||||||
self.check_init()
|
self.check_init()
|
||||||
|
|
||||||
|
|
||||||
|
class TestInitSystemOpenrcMergedUsrFull(InitSystemOpenrcBase):
|
||||||
|
config = InitSystemOpenrcBase.config + \
|
||||||
|
"""
|
||||||
|
BR2_ROOTFS_MERGED_USR=y
|
||||||
|
BR2_SYSTEM_DHCP="eth0"
|
||||||
|
BR2_TARGET_ROOTFS_EXT2=y
|
||||||
|
"""
|
||||||
|
|
||||||
|
def test_run(self):
|
||||||
|
self.start_emulator("ext2")
|
||||||
|
self.check_init()
|
||||||
|
|||||||
Reference in New Issue
Block a user