Split off copying of hostid file
This commit is contained in:
7
host-id.sh
Normal file
7
host-id.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
|
||||
cp \
|
||||
/etc/hostid \
|
||||
/mnt/etc/
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user