From: Lars Wirzenius Date: Wed, 29 Jun 2011 15:20:15 +0000 (+0100) Subject: Add a newline to end of /etc/hostname. X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=a7031c97fddc7db735b930677551343efa5e2249;p=forks%2Fvmdebootstrap.git Add a newline to end of /etc/hostname. --- diff --git a/vmdebootstrap b/vmdebootstrap index f859587..2fc5590 100755 --- a/vmdebootstrap +++ b/vmdebootstrap @@ -173,7 +173,7 @@ class VmDebootstrap(cliapp.Application): def set_hostname(self, rootdir): hostname = self.settings['hostname'] with open(os.path.join(rootdir, 'etc', 'hostname'), 'w') as f: - f.write(hostname) + f.write('%s\n' % hostname) def set_root_password(self, rootdir): if self.settings['root-password']: