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 \
|
/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
|
||||||
|
|||||||
Reference in New Issue
Block a user