aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-12-22 10:14:35 +0100
committerGravatar Christian Hesse <mail@eworm.de>2022-12-22 10:50:32 +0100
commit0c02794ff3921da0ac6ee8b82716b258ca3a5340 (patch)
treeeca16df8c139fcc0a139b0a583deecdfa2355599
parent2dc23e1042d90f966967dc1c2ea855a105c09e67 (diff)
downloadmkinitcpio-hostname-0c02794ff3921da0ac6ee8b82716b258ca3a5340.tar.gz
mkinitcpio-hostname-0c02794ff3921da0ac6ee8b82716b258ca3a5340.tar.zst
do not set machine-id
This is no longer required as archiso resets the file. Currently systemd's first-boot mechanism is still unavailable as archiso creates an empty file, instead of writing special value "uninitialized". See "First Boot Semantics" in machine-id(5) for details.
-rw-r--r--hook/hostname2
-rw-r--r--install/hostname1
2 files changed, 0 insertions, 3 deletions
diff --git a/hook/hostname b/hook/hostname
index 4606362..585229a 100644
--- a/hook/hostname
+++ b/hook/hostname
@@ -3,8 +3,6 @@
run_latehook() {
local newroot="/new_root/"
- /usr/bin/systemd-machine-id-setup --root="${newroot}"
-
if [[ ! -s "${newroot}/etc/hostprefix" ]]; then
cp "${newroot}/etc/hostname" "${newroot}/etc/hostprefix"
fi
diff --git a/install/hostname b/install/hostname
index 58ad350..7f41a4d 100644
--- a/install/hostname
+++ b/install/hostname
@@ -2,7 +2,6 @@
build() {
add_runscript
- add_binary /usr/bin/systemd-machine-id-setup
}
help() {