aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/uts.h2
-rw-r--r--init/Kconfig9
2 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/uts.h b/include/linux/uts.h
index 73eb1ed36ec4..6ddbd86377de 100644
--- a/include/linux/uts.h
+++ b/include/linux/uts.h
@@ -9,7 +9,7 @@
9#endif 9#endif
10 10
11#ifndef UTS_NODENAME 11#ifndef UTS_NODENAME
12#define UTS_NODENAME "(none)" /* set by sethostname() */ 12#define UTS_NODENAME CONFIG_DEFAULT_HOSTNAME /* set by sethostname() */
13#endif 13#endif
14 14
15#ifndef UTS_DOMAINNAME 15#ifndef UTS_DOMAINNAME
diff --git a/init/Kconfig b/init/Kconfig
index ebafac4231ee..e0a22e42d39a 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -204,6 +204,15 @@ config KERNEL_LZO
204 204
205endchoice 205endchoice
206 206
207config DEFAULT_HOSTNAME
208 string "Default hostname"
209 default "(none)"
210 help
211 This option determines the default system hostname before userspace
212 calls sethostname(2). The kernel traditionally uses "(none)" here,
213 but you may wish to use a different default here to make a minimal
214 system more usable with less configuration.
215
207config SWAP 216config SWAP
208 bool "Support for paging of anonymous memory (swap)" 217 bool "Support for paging of anonymous memory (swap)"
209 depends on MMU && BLOCK 218 depends on MMU && BLOCK