Skip to content

Commit 8ff37bc

Browse files
committed
Added CentOS CoreOS & Red Hat Enterpise Linux CoreOS
1 parent 923606f commit 8ff37bc

File tree

4 files changed

+151
-0
lines changed

4 files changed

+151
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ In addition to being able to host netboot.xyz locally, you can also create your
129129
| Bodhi Linux | https://www.bodhilinux.com | No | Yes |
130130
| CachyOS | https://cachyos.org | No | Yes |
131131
| CentOS | https://centos.org | Yes | No |
132+
| CentOS CoreOS | https://centos.org | Yes | No |
132133
| Debian | https://debian.org | Yes | Yes|
133134
| Devuan | https://devuan.org | Yes | No |
134135
| Elementary OS | https://elementary.io | No | Yes |
@@ -170,6 +171,7 @@ In addition to being able to host netboot.xyz locally, you can also create your
170171
| Q4OS | https://q4os.org | No | Yes |
171172
| Raizo | https://sourceforge.net/projects/live-raizo/ | No | Yes |
172173
| Red Hat Enterprise Linux | https://www.redhat.com | User supplied media | No |
174+
| Red Hat Enterprise Linux CoreOS | https://openshift.com | Yes | No |
173175
| Regolith | https://regolith-linux.org | No | Yes |
174176
| Rocky Linux | https://rockylinux.org/ | Yes | No |
175177
| Septor | https://septor.sourceforge.io | No | Yes |

roles/netbootxyz/defaults/main.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,25 @@ releases:
188188
name: 10.0 Stream
189189
- code_name: 9-stream
190190
name: 9.0 Stream
191+
centos-coreos:
192+
base_dir: centos/scos
193+
enabled: true
194+
menu: linux
195+
mirror: https://cloud.centos.org
196+
name: CentOS Stream CoreOS
197+
versions:
198+
- code_name: 9.0.20250222-0
199+
name: 9.0.20250222-0
200+
major_version: 9
201+
- code_name: 9.0.20250411-0
202+
name: 9.0.20250411-0
203+
major_version: 9
204+
- code_name: 9.0.20250510-0
205+
name: 9.0.20250510-0
206+
major_version: 9
207+
- code_name: 10.0.20250628-0
208+
name: 10.0.20250628-0
209+
major_version: 10
191210
coreos:
192211
base_dir: prod/streams
193212
enabled: true
@@ -442,6 +461,24 @@ releases:
442461
enabled: true
443462
menu: linux
444463
name: Proxmox
464+
rhcos:
465+
enabled: true
466+
menu: linux
467+
mirror: https://mirror.openshift.com/pub/openshift-v4
468+
name: Red Hat Enterprise Linux CoreOS
469+
versions:
470+
- code_name: 4.12
471+
name: 4.12 [Extended Support]
472+
- code_name: 4.14
473+
name: 4.14 [Extended Support]
474+
- code_name: 4.16
475+
name: 4.16 [Maintenance Support]
476+
- code_name: 4.17
477+
name: 4.17 [Maintenance Support]
478+
- code_name: 4.18
479+
name: 4.18 [Full Support]
480+
- code_name: 4.19
481+
name: 4.19 [Full Support]
445482
rhel:
446483
enabled: true
447484
menu: linux
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!ipxe
2+
3+
# CentOS Stream CoreOS
4+
# https://www.centos.org/cloud/
5+
# https://github.com/coreos/coreos-installer/blob/master/README.md#installing-from-pxe
6+
7+
goto ${menu}
8+
9+
:scos
10+
set os {{ releases.centos-coreos.name }}
11+
set os_arch ${arch}
12+
iseq ${os_arch} x86_64 && set os_arch x86_64 ||
13+
iseq ${os_arch} arm64 && set os_arch aarch64 ||
14+
isset ${install_device} || set install_device /dev/sda
15+
isset ${ignition_url} || set ignition_url skip
16+
menu ${os} - ${os_arch}
17+
item --gap ${os}:
18+
{% for item in releases.centos-coreos.versions %}
19+
item {{ item.code_name }} ${space} ${os} {{ item.name }}
20+
{% endfor %}
21+
item install_dev ${space} Set install device (e.g. /dev/sda): ${install_device}
22+
item ignition_config ${space} Set ignition config url: ${ignition_url}
23+
choose --default ${scos_version} scos_version || goto scos_exit
24+
echo ${cls}
25+
iseq ${scos_version} ignition_config && goto ignition_config ||
26+
iseq ${scos_version} install_dev && goto install_dev ||
27+
goto scos_boot ||
28+
goto scos_exit
29+
30+
:scos_boot
31+
{% for item in releases.centos-coreos.versions %}
32+
iseq ${centos-core_version} {{ item.code_name }} && set scos_major_version {{ item.major_version }} ||
33+
{% endfor %}
34+
set base_url ${centos-coreos_mirror}/${centos-coreos_base_dir}/${scos_major_version}/prod/streams
35+
set build_version ${scos_version}
36+
imgfree
37+
kernel ${base_url}/${build_version}/${os_arch}/scos-${build_version}-live-kernel.${os_arch} ip=dhcp rd.neednet=1 coreos.inst.install_dev=${install_device} coreos.inst.ignition_url=${ignition_url} coreos.live.rootfs_url=${base_url}/${build_version}/${os_arch}/scos-${build_version}-live-rootfs.${os_arch}.img initrd=initrd.magic ${cmdline}
38+
initrd ${base_url}/${build_version}/${os_arch}/scos-${build_version}-live-initramfs.${os_arch}.img
39+
boot
40+
goto scos_exit
41+
42+
:install_dev
43+
echo -n Selected install device will be overwritten,
44+
echo -n please ensure you know what are you doing...
45+
echo -n Please set desired install device: && read install_device
46+
clear menu
47+
goto scos
48+
49+
:ignition_config
50+
echo -n Please set Ignition Configuration URL: && read ignition_url
51+
clear menu
52+
goto scos
53+
54+
:scos_exit
55+
clear menu
56+
exit 0
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!ipxe
2+
3+
# Red Hat Enterprise Linux CoreOS (RHCOS)
4+
# https://openshift.com
5+
# https://github.com/coreos/coreos-installer/blob/master/README.md#installing-from-pxe
6+
7+
goto ${menu}
8+
9+
:rhcos
10+
set os {{ releases.rhcos.name }}
11+
set os_arch ${arch}
12+
iseq ${os_arch} x86_64 && set os_arch x86_64 ||
13+
iseq ${os_arch} arm64 && set os_arch aarch64 ||
14+
isset ${install_device} || set install_device /dev/sda
15+
isset ${ignition_url} || set ignition_url skip
16+
menu ${os} - ${os_arch}
17+
item --gap ${os}:
18+
{% for item in releases.rhcos.versions %}
19+
item {{ item.code_name }} ${space} ${os} {{ item.name }}
20+
{% endfor %}
21+
item url_set ${space} Set Base URL: ${rhcos_base_url}
22+
item install_dev ${space} Set install device: ${install_device}
23+
item ignition_config ${space} Set ignition config url: ${ignition_url}
24+
choose --default ${rhcos_version} rhcos_version || goto rhcos_exit
25+
echo ${cls}
26+
iseq ${rhcos_version} url_set && goto url_set ||
27+
iseq ${rhcos_version} ignition_config && goto ignition_config ||
28+
iseq ${rhcos_version} install_dev && goto install_dev ||
29+
goto rhcos_boot ||
30+
goto rhcos_exit
31+
32+
:rhcos_boot
33+
{% for item in releases.rhcos.versions %}
34+
iseq ${core_version} {{ item.code_name }} ||
35+
{% endfor %}
36+
set base_url ${rhcos_mirror}/${os_arch}/dependencies/rhcos
37+
set build_version ${rhcos_version}
38+
imgfree
39+
kernel ${base_url}/${build_version}/latest/rhcos-live-kernel.${os_arch} ip=dhcp rd.neednet=1 coreos.inst.install_dev=${install_device} coreos.inst.ignition_url=${ignition_url} coreos.live.rootfs_url=${base_url}/${build_version}/latest/rhcos-live-rootfs.${os_arch}.img initrd=initrd.magic ${cmdline}
40+
initrd ${base_url}/${build_version}/latest/rhcos-live-initramfs.${os_arch}.img
41+
boot
42+
goto rhcos_exit
43+
44+
:install_dev
45+
echo -n Please set desired install device: && read install_device
46+
clear menu
47+
goto rhcos
48+
49+
:ignition_config
50+
echo -n Please set Ignition Configuration URL: && read ignition_url
51+
clear menu
52+
goto rhcos
53+
54+
:rhcos_exit
55+
clear menu
56+
exit 0

0 commit comments

Comments
 (0)