Skip to contentSkip to conversation

package/systemd: add repart support

PATCH New James Hilliard 3 participants 4 messages Mar 8, 2020

lore
Share & tools
lore
#0 lore raw

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
index c727082a1a..64d30f32aa 100644
@@ -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
index 1c3b81cfcb..d05541a2f6 100644
@@ -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
#1 lore raw

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.

---
 package/systemd/Config.in  | 9 +++++++++
 package/systemd/systemd.mk | 8 +++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)
package/systemd/Config.in +0 -0
index c727082a1a..64d30f32aa 100644

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"
 	help
package/systemd/systemd.mk +7 -1
index 1c3b81cfcb..d05541a2f6 100644
@@ -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 -
#2 lore raw

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.

---
 package/systemd/Config.in  | 9 +++++++++
 package/systemd/systemd.mk | 8 +++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)
package/systemd/Config.in +0 -0
index c727082a1a..64d30f32aa 100644
@@ -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 -0
        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.

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"
      help
package/systemd/systemd.mk +0 -1
index 1c3b81cfcb..d05541a2f6 100644
@@ -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
 

package/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

#3 lore raw

PATCH 1/1 package/systemd: add repart support

In reply to James Hilliard
Quoted 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.

---
 package/systemd/Config.in  | 9 +++++++++
 package/systemd/systemd.mk | 8 +++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)
package/systemd/Config.in +0 -0
index c727082a1a..64d30f32aa 100644
@@ -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 -0
 	  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

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