Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from openSUSE/fate_319639_2
sanitize hostname handling (fate #319639)
- Loading branch information
Showing
7 changed files
with
56 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#hostname setting in installation/rescue system | ||
|
||
There are 3 cases: | ||
|
||
1. no hostname is set | ||
|
||
2. hostname is set via dhcp (either from HOSTNAME or FQDN) | ||
|
||
3. hostname is set via `hostname` boot option | ||
|
||
linuxrc defaults to `install`, which may be overridden by dhcp (2) or user | ||
(3). (3) takes precedence over (2). | ||
|
||
##installation system | ||
|
||
When yast is started, the value from (3) is passed to yast via | ||
`/etc/install.inf::Hostname` and ends up in `/etc/hostname` of the installed system. | ||
|
||
When linuxrc doesn't set `/etc/install.inf::Hostname` yast generates a | ||
default `/etc/hostname` entry of the form `linux-XXXX` (+ `.suse` in sle12). | ||
`XXXX` is some random part. | ||
|
||
There is no `/etc/hostname` file in the installation environment. | ||
|
||
##rescue system | ||
|
||
linuxrc changes the hostname to `rescue`, which may be overridden by user (3). | ||
|
||
This value is put into `/etc/hostname` of the rescue system. The value there may later | ||
be overridden by dhcp (2). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters