Hello community, here is the log from the commit of package linuxrc for openSUSE:Leap:15.2 checked in at 2020-04-17 13:36:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/linuxrc (Old) and /work/SRC/openSUSE:Leap:15.2/.linuxrc.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "linuxrc" Fri Apr 17 13:36:29 2020 rev:108 rq:793933 version:7.0.14 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/linuxrc/linuxrc.changes 2020-04-14 14:20:28.229251621 +0200 +++ /work/SRC/openSUSE:Leap:15.2/.linuxrc.new.2738/linuxrc.changes 2020-04-17 13:36:32.192174435 +0200 @@ -1,0 +2,13 @@ +Thu Apr 9 15:20:00 UTC 2020 - [email protected] + +- merge gh#openSUSE/linuxrc#221 +- Use long-named options for better readability +- 7.0.14 + +-------------------------------------------------------------------- +Thu Apr 9 15:17:31 UTC 2020 - [email protected] + +- merge gh#openSUSE/linuxrc#218 +- Update doc for hostname in different SLE versions + +-------------------------------------------------------------------- Old: ---- linuxrc-7.0.13.tar.xz New: ---- linuxrc-7.0.14.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ linuxrc.spec ++++++ --- /var/tmp/diff_new_pack.dw1kC4/_old 2020-04-17 13:36:32.644174775 +0200 +++ /var/tmp/diff_new_pack.dw1kC4/_new 2020-04-17 13:36:32.648174777 +0200 @@ -17,7 +17,7 @@ Name: linuxrc -Version: 7.0.13 +Version: 7.0.14 Release: 0 Summary: SUSE Installation Program License: GPL-3.0+ ++++++ linuxrc-7.0.13.tar.xz -> linuxrc-7.0.14.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/linuxrc-7.0.13/VERSION new/linuxrc-7.0.14/VERSION --- old/linuxrc-7.0.13/VERSION 2020-04-06 16:48:37.000000000 +0200 +++ new/linuxrc-7.0.14/VERSION 2020-04-09 17:20:00.000000000 +0200 @@ -1 +1 @@ -7.0.13 +7.0.14 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/linuxrc-7.0.13/changelog new/linuxrc-7.0.14/changelog --- old/linuxrc-7.0.13/changelog 2020-04-06 16:48:37.000000000 +0200 +++ new/linuxrc-7.0.14/changelog 2020-04-09 17:20:00.000000000 +0200 @@ -1,3 +1,9 @@ +2020-04-09: 7.0.14 + - merge gh#openSUSE/linuxrc#218 + - Update doc for hostname in different SLE versions + - merge gh#openSUSE/linuxrc#221 + - Use long-named options for better readability + 2020-04-06: 7.0.13 - merge gh#openSUSE/linuxrc#220 - make I/O device pre-configuration optional (bsc#1168036, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/linuxrc-7.0.13/linuxrc_hostname.md new/linuxrc-7.0.14/linuxrc_hostname.md --- old/linuxrc-7.0.13/linuxrc_hostname.md 2020-04-06 16:48:37.000000000 +0200 +++ new/linuxrc-7.0.14/linuxrc_hostname.md 2020-04-09 17:20:00.000000000 +0200 @@ -1,31 +1,65 @@ # hostname setting in installation/rescue system -There are 3 cases: +The hostname can be set (in order of precedence): -1. no hostname is set +1. via `hostname` boot option +2. via DHCP (either from HOSTNAME or FQDN) +3. Default hostname + +linuxrc doesn't write to `/etc/hostname`, but sets the transient hostname +and writes other settings before Yast starts. After that, Yast takes over. +See https://github.com/yast/yast-network/blob/master/doc/hostname.md -2. hostname is set via dhcp (either from HOSTNAME or FQDN) +## installation system -3. hostname is set via `hostname` boot option +- `etc/hostname` is an empty file at the beginning of the installation +- `linuxrc` doesn't write anything to `/etc/hostname` +- `linuxrc` writes by default `/etc/install.inf::SetHostname=1` -linuxrc defaults to `install`, which may be overridden by dhcp (2) or user -(3). (3) takes precedence over (2). +## If `ifcfg=*=dhcp` is used -## installation system +- `linuxrc` writes `/etc/sysconfig/network/dhcp:DHCLIENT_SET_HOSTNAME="yes"` + +## If `hostname` boot option is used + +1. linuxrc writes `/etc/install.inf::SetHostnameUsed=1` +2. linuxrc takes the value of `hostname` boot option and + - writes it to `/etc/install.inf::Hostname` + - sets the transient hostname to that value + +#### Example + +If `hostname=myhost` is used + +**/etc/install.inf** +``` +[...] +SetHostname: 1 +SetHostnameUsed: 1 +Hostname: myhost +[...] +``` + +## If `hostname` boot option is not used -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. +1. `linuxrc` doesn't write `/etc/install.inf::Hostname`, so it is not present. +2. `linuxrc` writes `/etc/install.inf::SetHostnameUsed=0`. +3. `linuxrc` sets the transient hostname to `install`. -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. +#### Example -There is no `/etc/hostname` file in the installation environment. +**/etc/install.inf** +``` +[...] +SetHostname: 1 +SetHostnameUsed: 0 +[...] +``` ## rescue system -linuxrc changes the hostname to `rescue`, which may be overridden by user (3). +linuxrc changes the hostname to `rescue`, which may be overridden by user `hostname` boot option. -This value is put into `/etc/hostname` of the rescue system. The value there may later -be overridden by dhcp (2). +This value is put into `/etc/hostname` of the rescue system. The value there +may later be overridden by DHCP. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/linuxrc-7.0.13/linuxrc_repo.md new/linuxrc-7.0.14/linuxrc_repo.md --- old/linuxrc-7.0.13/linuxrc_repo.md 2020-04-06 16:48:37.000000000 +0200 +++ new/linuxrc-7.0.14/linuxrc_repo.md 2020-04-09 17:20:00.000000000 +0200 @@ -80,7 +80,7 @@ mkdir -p /tmp/foo/etc/linuxrc.d cp content /tmp/foo/etc/linuxrc.d/ cd /tmp/foo -find . | cpio -o -H newc | xz --check=crc32 -c >>initrd_on_boot_medium +find . | cpio --create --format=newc | xz --check=crc32 --to-stdout >>initrd_on_boot_medium ``` ## 3. Multi-repository medium
