Fix /etc/hosts
This commit is contained in:
parent
518316924a
commit
c9a647f0dc
2 changed files with 2 additions and 2 deletions
|
|
@ -105,7 +105,7 @@
|
|||
{
|
||||
"type": "file",
|
||||
"source": "hosts",
|
||||
"destination": "/tmp/extra/etc/hosts"
|
||||
"destination": "/etc/hosts.template"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ PARTTABLE
|
|||
|
||||
hostname=$(ip -o link show | sed -ne 's#^.*link/ether \([0-9a-f:]*\).*$#\1#p' | sed -ne '1{s/://g;p}')
|
||||
echo $hostname > ${rootmnt}/etc/hostname
|
||||
sed -i "s/@@HOSTNAME@@/$hostname/" ${rootmnt}/etc/hosts
|
||||
sed "s/@@HOSTNAME@@/$hostname/" ${rootmnt}/etc/hosts.template > ${rootmnt}/etc/hosts
|
||||
|
||||
if [ -z "$labsync_localboot" ]; then
|
||||
labsync_set_environment LABSYNC "$torrent_name"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue