From 109b848a3bd2ed76189876fe2fd3a8c46878fa66 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 18 Aug 2023 18:34:56 +0200 Subject: lxc_rootfs_debootstrap: add trailing newline to etc/hostname --- lxc_rootfs_debootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3