Skip to contentSkip to conversation

systemd: don't build systemd-firstboot by default

PATCH New Frank Hunleth 2 participants 2 messages Oct 26, 2016 – Dec 8, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: don't build systemd-firstboot by default

systemd-firstboot is never invoked since systemd's first boot detection logic checks whether /etc/machine-id exists. Since the file is created automatically by systemd.mk, systemd will never detect first boot and therefore the systemd-firstboot.service unit file will never get run.

Additionally, if /etc/machine-id is removed to allow systemd-firstboot to run, it interactively prompts for the system locale. This makes it seem unlikely that an embedded system would want to use it.

---
 package/systemd/Config.in | 1 -
 1 file changed, 1 deletion(-)
package/systemd/Config.in +0 -1
index ddaf3e2..1aedb7b 100644
@@ -106,7 +106,6 @@ config BR2_PACKAGE_SYSTEMD_COREDUMP
 
 config BR2_PACKAGE_SYSTEMD_FIRSTBOOT
 	bool "enable firstboot support"
-	default y
 	help
 	  systemd-firstboot initializes the most basic system settings
 	  interactively on the first boot.
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 systemd: don't build systemd-firstboot by default

Hello,

Quoted 5 lines · Frank Hunleth

systemd-firstboot is never invoked since systemd's first boot detection logic checks whether /etc/machine-id exists. Since the file is created automatically by systemd.mk, systemd will never detect first boot and therefore the systemd-firstboot.service unit file will never get run.

Quoted 8 lines

Additionally, if /etc/machine-id is removed to allow systemd-firstboot to run, it interactively prompts for the system locale. This makes it seem unlikely that an embedded system would want to use it.

---
 package/systemd/Config.in | 1 -
 1 file changed, 1 deletion(-)

Since none of the people interested in systemd have replied to your patch, and your commit log looked sensible, I applied it to master.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com