You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CentOS 8: Working KS for semi-automatic installation of servers
Attention: There seems to be a bug in CentOS 8 (including 8.1.1911)
preventing automatic loading of ks.cfg from OEMDRV to work (at least it did
not in our tests). You can add inst.ks=hd:sdX1/ks.cfg to he setup command
line as workaround. This is not an error of this kickstart file.
This commit contains also Smaller updates in README and CentOS 7 kickstart
file
Copy file name to clipboardexpand all lines: README.md
+21-16
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,12 @@ setup of our bare metal VM host machines.
9
9
10
10
## Table of Contents
11
11
12
-
*[HowTo, Tips and Tricks](#howto-tips-and-trick)
12
+
*[HowTo, Tips and Tricks](#howto-tips-and-tricks)
13
13
*[Validate Kickstart file, show differences between versions](#validate-kickstart-file-show-differences-between-versions)
14
-
*[CentOS 7/8: automatically load Kickstart file from OEMDRVstorage device](#centos-78-automatically-load-kickstart-file-from-oemdrvstorage-device)
15
-
*[CentOS 7/8: Create USB flash drive installation media](#centos-78-create-usb-flash-drive-installation-media)
16
14
*[Debugging Hints](#debugging-hints)
17
-
*[CentOS 7: Custom USB flash drive including the Kickstart file for installation](#centos-7-custom-usb-flash-drive-including-the-kickstart-file-for-installation)
15
+
*[Automatically load Kickstart file from OEMDRV storage device](#automatically-load-kickstart-file-from-oemdrv-storage-device)
16
+
*[Create USB flash drive CentOS installation media](#create-usb-flash-drive-centos-installation-media)
17
+
*[Custom USB flash drive including a Kickstart file for installation](#custom-usb-flash-drive-including-a-kickstart-file-for-installation)
18
18
*[Preparations](#preparations)
19
19
*[Media creation](#media-creation)
20
20
*[Further reading, useful links and notes](#further-reading-useful-links-and-notes)
@@ -53,8 +53,8 @@ ksvalidator ./foo.ks
53
53
54
54
### Debugging Hints
55
55
56
-
After Anaconda (the graphical installer) started, there are differen TTYs /
57
-
terminals you can switch to (via `Ctrl+Alt+F<Number>`ort`Alt+F<Number>`):
56
+
After Anaconda (the graphical installer) started, there are different TTYs /
57
+
terminals you can switch to (via `Ctrl+Alt+F<Number>`or`Alt+F<Number>`):
58
58
59
59
***TTY1:** Main information screen before starting the graphical installer
60
60
(Anaconda). As well as the installation dialog when using `text` or `cmdline`.
@@ -66,16 +66,21 @@ terminals you can switch to (via `Ctrl+Alt+F<Number>` ort `Alt+F<Number>`):
66
66
works.
67
67
*`lsblk -l -p`
68
68
***TTY3**
69
-
* The install log displaying messages from install program.
69
+
*Install log: The install log displaying messages from install program (if any)
70
70
***TTY4**
71
-
* The system log displaying messages from kernel, etc.
71
+
*Strorage log: The system log displaying messages from kernel, etc.
72
72
***TTY5**
73
-
* All other messages.
73
+
*Program log: All other messages.
74
74
***TTY7**
75
75
* The installation dialog when using the graphical installer.
76
76
77
77
78
-
### CentOS 7/8: automatically load Kickstart file from `OEMDRV`storage device
78
+
79
+
### Automatically load Kickstart file from `OEMDRV` storage device
80
+
81
+
**Attention / FIXME:** There seems to be a bug in CentOS 8 (including 8.1.1911)
82
+
preventing this automatism to work (at least it did not in our tests). You
83
+
can add `inst.ks=hd:sdX1/ks.cfg` to he setup command line as workaround.
79
84
80
85
The CentOS setup can load your Kickstart file automatically without having to
81
86
specify the `inst.ks=` boot option. To do so, one name the file `ks.cfg` and
@@ -120,7 +125,7 @@ Now just boot and make sure the additional USB key is present when the installat
120
125
121
126
122
127
123
-
### CentOS 7/8: Create USB flash drive installation media
128
+
### Create USB flash drive CentOS installation media
124
129
125
130
Just validate your ISO and write it with `dd` to the target device `/dev/sdX`
126
131
(adapt as needed). For sure, all data (if any) on the target will get detroyed.
* How to generate and serve kickstart file dynamically and use it with `inst.ks=http://`
535
-
* HTTPS/TLS possible?
540
+
* HTTPS/TLS possible? Cf. [5.3. Making a Kickstart file available on an HTTP or HTTPS server](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/performing_an_advanced_rhel_installation/making-kickstart-files-available-to-the-installation-program_installing-rhel-as-an-experienced-user#making-a-kickstart-file-available-on-an-http-or-https-server_making-kickstart-files-available-to-the-installation-program)
536
541
* How does this work in terms of network config from syslinux boot menu? Cf. https://www.redhat.com/archives/kickstart-list/2007-July/msg00035.html
537
542
* Existing projects or create one in golang, basic HTTP server and templating?
readonly regex_domainname='^[[:lower:][:digit:]][[:lower:][:digit:]\-\.]{1,252}[[:lower:][:digit:]]$'# some domain NICs allow leading numbers and stuff; we cannot be stricter than them if we won't refuse really existing domains
29
-
readonly regex_dmcryptpwd='^[[:alnum:][:punct:]]{20,}$'# ATTENTION: has to stricter or in sync than kickstart cmd "pwpolicy luks".
35
+
readonly regex_dmcryptpwd='^[[:alnum:][:punct:]]{20,}$'# ATTENTION: has to be stricter or in sync than kickstart cmd "pwpolicy luks".
30
36
31
37
# init misc vars
32
38
data_hostname=''
@@ -323,7 +329,7 @@ then
323
329
then
324
330
printf'%s\n''Error: Empty passwords are not allowed.'
325
331
elif [ -z"${pwdscore}" ] ||
326
-
[ "${pwdscore}"-lt 50 ] # ATTENTION: has to stricter or in sync than kickstart cmd "pwpolicy luks"
332
+
[ "${pwdscore}"-lt 50 ] # ATTENTION: has to be stricter or in sync than kickstart cmd "pwpolicy luks"
327
333
then
328
334
printf'%s\n'"Error: Password is too weak (cf. \"Password rules\" above). pwscore result: ${pwdscore}"
0 commit comments