Skip to content

Commit

Permalink
Import dc58c20730413508f07f9c9f9ca9a5235f1b6325
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed Oct 9, 2020
1 parent 05ce57b commit 3e150e6
Show file tree
Hide file tree
Showing 81 changed files with 3,179 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "fedora-coreos-config"]
path = fedora-coreos-config
url = https://github.com/coreos/fedora-coreos-config
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
Please see https://github.com/openshift/installer to install
an OpenShift cluster which uses Red Hat CoreOS.
This is intended to be the "upstream" of RHEL CoreOS, using
[CentOS Stream](https://wiki.centos.org/Manuals/ReleaseNotes/CentOSStream)

This repository provides a place to report issues about Red Hat CoreOS, in
addition to [the Bugzilla product](https://bugzilla.redhat.com/enter_bug.cgi?product=OpenShift%20Container%20Platform&component=RHCOS).
It doesn't build yet because we need to also build some CoreOS
components like `afterburn` targeting this userspace, and we
also need to figure out where to get stuff like `openvswitch`.

For more information (RHT internal): https://url.corp.redhat.com/redhat-coreos

You may also be interested in [Fedora CoreOS](https://coreos.fedoraproject.org/)
and the [coreos-assembler](https://github.com/coreos/coreos-assembler/) project
for example.
Possibly in the future, what we can do is have redhat-coreos
inherit *this* as a git submodule.
20 changes: 20 additions & 0 deletions centos/CentOS-Stream-AppStream.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# CentOS-AppStream.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[Stream-AppStream]
name=CentOS-Stream - AppStream
mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=AppStream&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/8-stream/AppStream/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official

20 changes: 20 additions & 0 deletions centos/CentOS-Stream-Base.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[Stream-BaseOS]
name=CentOS-Stream - Base
mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=BaseOS&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/8-stream/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official

21 changes: 21 additions & 0 deletions centos/CentOS-Stream-Debuginfo.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# CentOS-Debug.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#

# All debug packages from all the various CentOS-8 releases
# are merged into a single repo, split by BaseArch
#
# Note: packages in the debuginfo repo are currently not signed
#

[Stream-base-debuginfo]
name=CentOS-Stream - Debuginfo
baseurl=http://debuginfo.centos.org/8-stream/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official

21 changes: 21 additions & 0 deletions centos/CentOS-Stream-Extras.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# CentOS-Extras.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

#additional packages that may be useful
[Stream-extras]
name=CentOS-Stream - Extras
mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/8-stream/extras/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official

30 changes: 30 additions & 0 deletions centos/CentOS-Stream-Media.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# CentOS-Media.repo
#
# This repo can be used with mounted DVD media, verify the mount point for
# CentOS-8. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c8-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c8-media [command]

[c8-Stream-media-BaseOS]
name=CentOS-Stream-BaseOS - Media
baseurl=file:///media/CentOS/BaseOS
file:///media/cdrom/BaseOS
file:///media/cdrecorder/BaseOS
gpgcheck=1
enabled=0
gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official

[c8-Stream-media-AppStream]
name=CentOS-Stream-AppStream - Media
baseurl=file:///media/CentOS/AppStream
file:///media/cdrom/AppStream
file:///media/cdrecorder/AppStream
gpgcheck=1
enabled=0
gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official
20 changes: 20 additions & 0 deletions centos/CentOS-Stream-PowerTools.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# CentOS-PowerTools.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[Stream-PowerTools]
name=CentOS-Stream - PowerTools
mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=PowerTools&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/8-stream/PowerTools/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official

43 changes: 43 additions & 0 deletions centos/CentOS-Stream-Sources.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# CentOS-Sources.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[Stream-BaseOS-source]
name=CentOS-Stream - BaseOS Sources
baseurl=http://vault.centos.org/$contentdir/8-stream/BaseOS/Source/
gpgcheck=1
enabled=0
gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official

#AppStream
[Stream-AppStream-source]
name=CentOS-Stream - AppStream Sources
baseurl=http://vault.centos.org/$contentdir/8-stream/AppStream/Source/
gpgcheck=1
enabled=0
gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official

#additional packages that may be useful
[Stream-extras-source]
name=CentOS-Stream - Extras Sources
baseurl=http://vault.centos.org/$contentdir/8-stream/extras/Source/
gpgcheck=1
enabled=0
gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official

#additional packages that extend functionality of existing packages
[Stream-centosplus-source]
name=CentOS-Stream - Plus Sources
baseurl=http://vault.centos.org/$contentdir/8-stream/centosplus/Source/
gpgcheck=1
enabled=0
gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official

3 changes: 3 additions & 0 deletions centos/CentOS-Stream-Vault.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CentOS Vault contains rpms from older releases in the CentOS-8
# tree.

21 changes: 21 additions & 0 deletions centos/CentOS-Stream-centosplus.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# CentOS-centosplus.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

#additional packages that extend functionality of existing packages
[Stream-centosplus]
name=CentOS-Stream - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
baseurl=http://mirror.centos.org/$contentdir/8-stream/centosplus/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official

4 changes: 4 additions & 0 deletions centos/centos-stream-repos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# updated in dist-git, etc
repos:
- Stream-BaseOS
- Stream-AppStream
1 change: 1 addition & 0 deletions fedora-coreos-config
Submodule fedora-coreos-config added at 16da48
46 changes: 46 additions & 0 deletions group
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
root:x:0:
bin:x:1:
daemon:x:2:
sys:x:3:
adm:x:4:
tty:x:5:
disk:x:6:
lp:x:7:
mem:x:8:
kmem:x:9:
wheel:x:10:
cdrom:x:11:
mail:x:12:
man:x:15:
sudo:x:16:
dialout:x:18:
floppy:x:19:
games:x:20:
tape:x:30:
video:x:39:
ftp:x:50:
lock:x:54:
audio:x:63:
nobody:x:99:
users:x:100:
utmp:x:22:
utempter:x:35:
ssh_keys:x:999:
systemd-journal:x:190:
dbus:x:81:
polkitd:x:998:
etcd:x:997:
dip:x:40:
cgred:x:996:
tss:x:59:
avahi-autoipd:x:170:
rpc:x:32:
sssd:x:993:
dockerroot:x:986:
rpcuser:x:29:
nfsnobody:x:65534:
kube:x:994:
sshd:x:74:
chrony:x:992:
openvswitch:x:800:
hugetlbfs:x:801:
17 changes: 17 additions & 0 deletions image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# See https://github.com/coreos/coreos-assembler/pull/298
size: 16

# Enable LUKS root volume
# Disabled due to https://gitlab.cee.redhat.com/coreos/redhat-coreos/merge_requests/632
luks_rootfs: "yes"
# This pairs with the above so we can easily detect in the initrd
extra-kargs:
- rhcos.root=crypt_rootfs
# https://bugzilla.redhat.com/show_bug.cgi?id=1830280
- random.trust_cpu=on
# https://bugzilla.redhat.com/show_bug.cgi?id=1812276
squashfs-compression: gzip

# Disable networking by default on firstboot. We can drop this once cosa stops
# defaulting to `ip=dhcp,dhcp6 rd.neednet=1` when it doesn't see this key.
ignition-network-kcmdline: []
27 changes: 27 additions & 0 deletions installer/EFI/redhat/grub.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file is copied from
# https://github.com/coreos/fedora-coreos-config

set default="1"

function load_video {
insmod efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus
insmod all_video
}

load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2

set timeout=60
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Install RHEL CoreOS' --class fedora --class gnu-linux --class gnu --class os {
linux /images/pxeboot/vmlinuz nomodeset rd.neednet=1 coreos.inst=yes
initrd /images/pxeboot/initrd.img
}
13 changes: 13 additions & 0 deletions installer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
These files will be copied to the target installer ISO
via the CoreOS Assembler buildextend-installer call. It
picks up all files in the coreos/fedora-coreos-config/installer/
directory and copies them to the base of the ISO.

Files currently copied are:

- isolinux/boot.msg
- isolinux/isolinux.cfg

Files that get copied into efiboot.img in the ISO:

- EFI/grub.cfg
5 changes: 5 additions & 0 deletions installer/isolinux/boot.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

splash.lss

- Press the 01<ENTER>07 key to begin the installation process.

Loading

0 comments on commit 3e150e6

Please sign in to comment.