From 377d56b1cd6bf05a6b97731d5462f1e41e35ec3a Mon Sep 17 00:00:00 2001 From: "Jean (east-high-Nerd)" Date: Wed, 24 Dec 2025 16:25:49 -0500 Subject: [PATCH] Split off copying of hostid file --- host-id.sh | 7 +++++++ pre-inst.sh | 4 +--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 host-id.sh diff --git a/host-id.sh b/host-id.sh new file mode 100644 index 0000000..ea1d969 --- /dev/null +++ b/host-id.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -euo pipefail + + +cp \ + /etc/hostid \ + /mnt/etc/ diff --git a/pre-inst.sh b/pre-inst.sh index 41dafbd..098ba7f 100755 --- a/pre-inst.sh +++ b/pre-inst.sh @@ -160,9 +160,7 @@ mount \ /sys \ /mnt/sys -cp \ - /etc/hostid \ - /mnt/etc/ +"${baseDir}/host-id.sh" if [[ "${ID}" == 'fedora' ]]; then "${baseDir}/fedora.sh" --resolv-conf