summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-08-18 18:34:56 +0200
committerAnton Khirnov <anton@khirnov.net>2023-08-18 18:34:56 +0200
commit109b848a3bd2ed76189876fe2fd3a8c46878fa66 (patch)
tree0922f107ff16868dd932b5858d6825cdac55d947
parent36a7d1dfbb175c1028e585906974dc01f7d21f6b (diff)
lxc_rootfs_debootstrap: add trailing newline to etc/hostnameHEADmaster
-rwxr-xr-xlxc_rootfs_debootstrap2
1 files changed, 1 insertions, 1 deletions
diff --git a/lxc_rootfs_debootstrap b/lxc_rootfs_debootstrap
index 9851dec..fe16912 100755
--- a/lxc_rootfs_debootstrap
+++ b/lxc_rootfs_debootstrap
@@ -291,7 +291,7 @@ class Bootstrapper:
# write /etc/hostname
with open_dirfd('hostname', 'w', dir_fd = self._etc_fd) as f:
- f.write('LXC_NAME')
+ f.write('LXC_NAME\n')
# write /etc/hosts
# cdebootstrap writes a minimal default, but we overwrite it