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 \ /sys \
/mnt/sys /mnt/sys
cp \ "${baseDir}/host-id.sh"
/etc/hostid \
/mnt/etc/
if [[ "${ID}" == 'fedora' ]]; then if [[ "${ID}" == 'fedora' ]]; then
"${baseDir}/fedora.sh" --resolv-conf "${baseDir}/fedora.sh" --resolv-conf