summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2015-03-20 15:25:31 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-21 00:00:48 +0000
commit4783ead254f135d7d4753f3b60a6e41249f3be8a (patch)
tree2a97c6071e589861cd43451d79da0377f063caed /documentation
parent12c7efe40addfbc5f02a105ad62eccdf5f9d9c82 (diff)
downloadpoky-4783ead254f135d7d4753f3b60a6e41249f3be8a.tar.gz
dev-manual: Applied review edits to section on hostname changing
Edits to the "Customizing an Image Hostname" section from Ross. Updated the last paragraph to not imply incorrect information. Fixes [YOCTO #7417] (From yocto-docs rev: 8997be297077ee0052a5afbe50b9864cdef14058) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/dev-manual/dev-manual-common-tasks.xml24
1 files changed, 13 insertions, 11 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml
index ba74e15d1a..3e48c0add5 100644
--- a/documentation/dev-manual/dev-manual-common-tasks.xml
+++ b/documentation/dev-manual/dev-manual-common-tasks.xml
@@ -1175,7 +1175,7 @@
1175 <title>Customizing an Image Hostname</title> 1175 <title>Customizing an Image Hostname</title>
1176 1176
1177 <para> 1177 <para>
1178 By default the configured hostname (i.e. 1178 By default, the configured hostname (i.e.
1179 <filename>/etc/hostname</filename>) in an image is the 1179 <filename>/etc/hostname</filename>) in an image is the
1180 same as the machine name. 1180 same as the machine name.
1181 For example, if 1181 For example, if
@@ -1186,12 +1186,9 @@
1186 1186
1187 <para> 1187 <para>
1188 You can customize this name by altering the value of the 1188 You can customize this name by altering the value of the
1189 "hostname" variable in the base-files recipe using either 1189 "hostname" variable in the
1190 <filename>base-files</filename> recipe using either
1190 an append file or a configuration file. 1191 an append file or a configuration file.
1191 <note>
1192 Setting the variable to "" causes no hostname to be
1193 written to <filename>/etc/hostname</filename>.
1194 </note>
1195 Use the following in an append file: 1192 Use the following in an append file:
1196 <literallayout class='monospaced'> 1193 <literallayout class='monospaced'>
1197 hostname="myhostname" 1194 hostname="myhostname"
@@ -1218,11 +1215,16 @@
1218 </para> 1215 </para>
1219 1216
1220 <para> 1217 <para>
1221 Another point of interest is that if you leave the variable 1218 Another point of interest is that if you unset the variable,
1222 "hostname" unset, the image will have no default hostname 1219 the image will have no default hostname in the filesystem.
1223 in the filesystem. 1220 Here is an example that unsets the variable in a
1224 This condition is suitable for environments that use 1221 configuration file:
1225 dynamic hostnames such as virtual machines. 1222 <literallayout class='monospaced'>
1223 hostname_pn-base-files = ""
1224 </literallayout>
1225 Having no default hostname in the filesystem is suitable for
1226 environments that use dynamic hostnames such as virtual
1227 machines.
1226 </para> 1228 </para>
1227 </section> 1229 </section>
1228 </section> 1230 </section>