package/systemd: add repart support
PATCH 1/1 package/systemd: add repart support
systemd-repart grows and adds partitions to a partition table, based on the configuration files described in repart.d.
--- package/systemd/Config.in | 9 +++++++++ package/systemd/systemd.mk | 8 +++++++- 2 files changed, 16 insertions(+), 1 deletion(-)
package/systemd/Config.in +9 -0
@@ -153,6 +153,15 @@ config BR2_PACKAGE_SYSTEMD_BINFMT http://www.freedesktop.org/software/systemd/man/systemd-binfmt.service.html +config BR2_PACKAGE_SYSTEMD_REPART + bool "enable repart support" + select BR2_PACKAGE_OPENSSL + help + systemd-repart grows and adds partitions to a partition table, + based on the configuration files described in repart.d. + + https://www.freedesktop.org/software/systemd/man/systemd-repart.html + config BR2_PACKAGE_SYSTEMD_COREDUMP bool "enable coredump hook" help
package/systemd/systemd.mk +7 -1
@@ -41,7 +41,6 @@ SYSTEMD_CONF_OPTS += \ -Dumount-path=/usr/bin/umount \ -Dnobody-group=nogroup \ -Didn=true \ - -Drepart=false \ -Duserdb=false \ -Dhomed=false \ -Dnss-systemd=true
@@ -305,6 +304,13 @@ else SYSTEMD_CONF_OPTS += -Dlocaled=false endif +ifeq ($(BR2_PACKAGE_SYSTEMD_REPART),y) +SYSTEMD_CONF_OPTS += -Drepart=true +SYSTEMD_DEPENDENCIES += openssl +else +SYSTEMD_CONF_OPTS += -Drepart=false +endif + ifeq ($(BR2_PACKAGE_SYSTEMD_COREDUMP),y) SYSTEMD_CONF_OPTS += -Dcoredump=true SYSTEMD_COREDUMP_USER = systemd-coredump -1 systemd-coredump -1 * /var/lib/systemd/coredump - - Core Dumper
Signature · 1 line
2.20.1
PATCH 1/1 package/systemd: add repart support
Hi James,
Quoted 14 lines · James Hilliard
systemd-repart grows and adds partitions to a partition table, based on the configuration files described in repart.d.
Signed-off-by James Hilliard <[email protected]>--- package/systemd/Config.in | 9 +++++++++ package/systemd/systemd.mk | 8 +++++++- 2 files changed, 16 insertions(+), 1 deletion(-)package/systemd/Config.in +0
-0
package/systemd/Config.in config BR2_PACKAGE_SYSTEMD_BINFMT · line 158
Quoted 6 lines
package/systemd/Config.in +3
-0@@ -153,6 +153,15 @@ config BR2_PACKAGE_SYSTEMD_BINFMT http://www.freedesktop.org/software/systemd/man/systemd-binfmt.service.html +config BR2_PACKAGE_SYSTEMD_REPART + bool "enable repart support" + select BR2_PACKAGE_OPENSSL
The systemd meson.build indicates that util-linux libfdisk is also required for repart.
baruch
Quoted 35 lines
package/systemd/Config.in +6
-0+ help + systemd-repart grows and adds partitions to a partition table, + based on the configuration files described in repart.d. + + https://www.freedesktop.org/software/systemd/man/systemd-repart.html + config BR2_PACKAGE_SYSTEMD_COREDUMP bool "enable coredump hook" helppackage/systemd/systemd.mk +7
-1@@ -41,7 +41,6 @@ SYSTEMD_CONF_OPTS += \ -Dumount-path=/usr/bin/umount \ -Dnobody-group=nogroup \ -Didn=true \ - -Drepart=false \ -Duserdb=false \ -Dhomed=false \ -Dnss-systemd=true@@ -305,6 +304,13 @@ else SYSTEMD_CONF_OPTS += -Dlocaled=false endif +ifeq ($(BR2_PACKAGE_SYSTEMD_REPART),y) +SYSTEMD_CONF_OPTS += -Drepart=true +SYSTEMD_DEPENDENCIES += openssl +else +SYSTEMD_CONF_OPTS += -Drepart=false +endif + ifeq ($(BR2_PACKAGE_SYSTEMD_COREDUMP),y) SYSTEMD_CONF_OPTS += -Dcoredump=true SYSTEMD_COREDUMP_USER = systemd-coredump -1 systemd-coredump -1 * /var/lib/systemd/coredump - - Core Dumper
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -PATCH 1/1 package/systemd: add repart support
Quoted 19 lines · Baruch Siach
Hi James,
Quoted 15 lines · James Hilliard
systemd-repart grows and adds partitions to a partition table, based on the configuration files described in repart.d.
Signed-off-by James Hilliard <[email protected]>--- package/systemd/Config.in | 9 +++++++++ package/systemd/systemd.mk | 8 +++++++- 2 files changed, 16 insertions(+), 1 deletion(-)package/systemd/Config.in +0
-0@@ -153,6 +153,15 @@ config BR2_PACKAGE_SYSTEMD_BINFMT
Quoted 8 lines
package/systemd/Config.in config BR2_PACKAGE_SYSTEMD_BINFMT · line 158
Quoted 5 lines
package/systemd/Config.in +3
-0http://www.freedesktop.org/software/systemd/man/systemd-binfmt.service.html +config BR2_PACKAGE_SYSTEMD_REPART + bool "enable repart support" + select BR2_PACKAGE_OPENSSLThe systemd meson.build indicates that util-linux libfdisk is also required for repart.
This is selected by BR2_PACKAGE_SYSTEMD already since BR2_PACKAGE_UTIL_LINUX_BINARIES selects BR2_PACKAGE_UTIL_LINUX_LIBFDISK.
Quoted 48 lines
baruch
Quoted 25 lines
package/systemd/Config.in +6
-0+ help + systemd-repart grows and adds partitions to a partition table, + based on the configuration files described in repart.d. + + https://www.freedesktop.org/software/systemd/man/systemd-repart.html + config BR2_PACKAGE_SYSTEMD_COREDUMP bool "enable coredump hook" helppackage/systemd/systemd.mk +0
-1@@ -41,7 +41,6 @@ SYSTEMD_CONF_OPTS += \ -Dumount-path=/usr/bin/umount \ -Dnobody-group=nogroup \ -Didn=true \ - -Drepart=false \ -Duserdb=false \ -Dhomed=false \ -Dnss-systemd=true@@ -305,6 +304,13 @@ else SYSTEMD_CONF_OPTS += -Dlocaled=false endifpackage/systemd/systemd.mk else · line 316
Quoted 10 lines
package/systemd/systemd.mk +7
-0+ifeq ($(BR2_PACKAGE_SYSTEMD_REPART),y) +SYSTEMD_CONF_OPTS += -Drepart=true +SYSTEMD_DEPENDENCIES += openssl +else +SYSTEMD_CONF_OPTS += -Drepart=false +endif + ifeq ($(BR2_PACKAGE_SYSTEMD_COREDUMP),y) SYSTEMD_CONF_OPTS += -Dcoredump=true SYSTEMD_COREDUMP_USER = systemd-coredump -1 systemd-coredump -1 * /var/lib/systemd/coredump - - Core Dumper--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Thomas Petazzoni
AppliedPATCH 1/1 package/systemd: add repart support
In reply to James HilliardQuoted 15 lines · On Sun, 8 Mar 2020 03:16:40 -0600 James Hilliard <[email protected]>…
systemd-repart grows and adds partitions to a partition table, based on the configuration files described in repart.d.
Signed-off-by James Hilliard <[email protected]>--- package/systemd/Config.in | 9 +++++++++ package/systemd/systemd.mk | 8 +++++++- 2 files changed, 16 insertions(+), 1 deletion(-)package/systemd/Config.in +0
-0@@ -153,6 +153,15 @@ config BR2_PACKAGE_SYSTEMD_BINFMT
package/systemd/Config.in config BR2_PACKAGE_SYSTEMD_BINFMT · line 163
Quoted 10 lines
package/systemd/Config.in +8
-0http://www.freedesktop.org/software/systemd/man/systemd-binfmt.service.html +config BR2_PACKAGE_SYSTEMD_REPART + bool "enable repart support" + select BR2_PACKAGE_OPENSSL + help + systemd-repart grows and adds partitions to a partition table, + based on the configuration files described in repart.d. + + https://www.freedesktop.org/software/systemd/man/systemd-repart.html
Alphabetic sorting of options was not respected here, so I've moved this option.
I've also added an explicit select of libfdisk, as suggested by Baruch. Even though it is implied by the top-level option, making it explicit doesn't hurt.
Applied to next with those changes. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com