summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-05-25 11:29:33 +0300
committerLars Wirzenius <liw@liw.fi>2020-05-25 11:29:33 +0300
commit92367938f6bf91598b453f259f322f5c5334045f (patch)
treec4b9dfe3d900ad5e762c51618fe641d0be2bb99f
parentfb939a1e41984ab6ea503f94bb1f1d6cf735ffda (diff)
downloadvmdb2-92367938f6bf91598b453f259f322f5c5334045f.tar.gz
doc: document how to set hostname in image
-rw-r--r--vmdb2.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/vmdb2.md b/vmdb2.md
index 484dc5a..7ca4a55 100644
--- a/vmdb2.md
+++ b/vmdb2.md
@@ -141,6 +141,19 @@ device nodes, etc), it needs to be run using root privileges. For the
same reason, it probably can't be run in an unprivileged container.
+## Setting the hostname
+
+vmdb2 uses debootstrap, which copies the host's /etc/hostname file
+into the image. You probably want to set the hostname for the image
+you're creating. You can do this by overwriting the /etc/hostname file
+in the image, for example with the following step:
+
+~~~yaml
+- chroot: rootfs
+ shell: |
+ echo myhostname > /etc/hostname
+~~~
+
## All images must be partitioned
At this time, vmdb2 does not support building partitioned images