diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-05-25 11:29:33 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-05-25 11:29:33 +0300 |
commit | 92367938f6bf91598b453f259f322f5c5334045f (patch) | |
tree | c4b9dfe3d900ad5e762c51618fe641d0be2bb99f | |
parent | fb939a1e41984ab6ea503f94bb1f1d6cf735ffda (diff) | |
download | vmdb2-92367938f6bf91598b453f259f322f5c5334045f.tar.gz |
doc: document how to set hostname in image
-rw-r--r-- | vmdb2.md | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |