From 17333d92643d998d1c6a2dc5f6b1508b6507ad31 Mon Sep 17 00:00:00 2001 From: "Tobias C. Berner" Date: Sat, 17 Dec 2022 10:18:03 +0100 Subject: Add new rc: machine_id to generate /etc/machine-id This new default-enabled rc will generate a /etc/machine-id file if it does not exist, and pre-fill it with a newly generated UUID of version 4 [2]. The file is generated in /var/db/machine-id and symlinked to /etc/machine-id to allow for read-only root partitions. This file is amongst other things used by libraries like GLib. Bump FreeBSD version 1400076 to be able to easily add support for older version of FreeBSD via a package. Bump FreeBSD version 1301511 to be able to easily add support for older version of FreeBSD via a package. [1] Linux machine-id(5): https://www.man7.org/linux/man-pages/man5/machine-id.5.html [2] f176fe8e7f638e585afcd2f4dd52a522c4648f63 Approved by: bapt MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D37722 (cherry picked from commit 62a149bf621947fb7475c64b1ff04fe19fe16b29) --- libexec/rc/rc.conf | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libexec/rc/rc.conf') diff --git a/libexec/rc/rc.conf b/libexec/rc/rc.conf index 82796ba0ec48..e4f1ebe39de3 100644 --- a/libexec/rc/rc.conf +++ b/libexec/rc/rc.conf @@ -700,6 +700,9 @@ harvest_mask="511" # Entropy device harvests all but the very invasive sources. osrelease_enable="YES" # Update /var/run/os-release on boot (or NO). osrelease_file="/var/run/os-release" # File to update for os-release. osrelease_perms="444" # Default permission for os-release file. +machine_id_enable="YES" # Create /var/db/machine-id on boot if missing (or NO). +machine_id_file="/var/db/machine-id" # File to update for machine-id. +machine_id_perms="444" # Default permissions for machine-id file. dmesg_enable="YES" # Save dmesg(8) to /var/run/dmesg.boot watchdogd_enable="NO" # Start the software watchdog daemon watchdogd_flags="" # Flags to watchdogd (if enabled) -- cgit v1.2.3