Split off copying of hostid file

This commit is contained in:
2025-12-24 16:25:49 -05:00
parent 9c8add89e5
commit 377d56b1cd
2 changed files with 8 additions and 3 deletions

7
host-id.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
set -euo pipefail
cp \
/etc/hostid \
/mnt/etc/

View File

@@ -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