Commit 5a5785dc by Olivér Pintér

fix hostname generation 2

parent e8dff2dc
......@@ -100,7 +100,7 @@ class Context(BaseContext):
@staticmethod
def set_hostname(hostname):
with open('/etc/rc.conf.d/hostname', 'w') as f:
f.write(hostname)
f.write("hostname=\""+hostname+"\"")
with open('/etc/hosts', 'w') as f:
f.write("127.0.0.1 localhost\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment