Commit 527594ea authored by segfault's avatar segfault

Remove /etc/hostname from the base container rootfs

We don't want the containers to have the same hostname as the host, so
we remove the hostname that is copied from the host by debootstrap.
parent 1bafe1e6
......@@ -143,3 +143,8 @@ if not os.path.exists("/etc/amnesia"):
_out=sys.stdout.buffer, _err=sys.stderr.buffer)
base_rootfs.mkdir(mode=0o700, parents=True), "*")), base_rootfs)
# Remove hostname in base container rootfs, which is copied from the host by debootstrap
hostname = Path(base_rootfs, "etc/hostname")
if hostname.exists():
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment