diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-06-29 16:20:15 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-06-29 16:20:15 +0100 |
commit | a7031c97fddc7db735b930677551343efa5e2249 (patch) | |
tree | 363463d4b58a6b45dab060e8b8f512249e53ce86 | |
parent | e14a0df100e896b3a36b1839a8a0863185857b35 (diff) | |
download | vmdebootstrap-a7031c97fddc7db735b930677551343efa5e2249.tar.gz |
Add a newline to end of /etc/hostname.
-rwxr-xr-x | vmdebootstrap | 2 |
1 files changed, 1 insertions, 1 deletions
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']: |