From a7031c97fddc7db735b930677551343efa5e2249 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 29 Jun 2011 16:20:15 +0100 Subject: [PATCH] Add a newline to end of /etc/hostname. --- vmdebootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']: -- 2.39.2