]> git.siccegge.de Git - forks/vmdebootstrap.git/commitdiff
Add a newline to end of /etc/hostname.
authorLars Wirzenius <liw@liw.fi>
Wed, 29 Jun 2011 15:20:15 +0000 (16:20 +0100)
committerLars Wirzenius <liw@liw.fi>
Wed, 29 Jun 2011 15:20:15 +0000 (16:20 +0100)
vmdebootstrap

index f85958701455513defd868c26ed93f71a80a193a..2fc55902d425f368387f3187d6c866d17e31a287 100755 (executable)
@@ -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']: