Compare commits

...

5 Commits

Author SHA1 Message Date
Neil Hanlon
d9db20a39e
wee 2022-09-29 18:01:28 -04:00
Richard Arends
ca71f4d777 Remove OStree references 2022-06-06 19:26:00 +02:00
Richard Arends
18b2f705f9 Remove coreos references 2022-06-06 19:20:45 +02:00
Richard Arends
5020dafa80 Update README 2022-06-06 19:17:56 +02:00
Richard Arends
28c1019e47 Update 2022-06-06 15:55:19 +02:00
10 changed files with 35 additions and 39 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
build/
.direnv/
.envrc

View File

@ -1,6 +1,7 @@
# Rocky Linux Ostree
This repository contains all the bits to get a working Ostree for Rocky Linux (8.6). If you want to build a Rocky Linux CoreOS, in other words
a Red Hat CoreOS clone, then checkout [coreos-assembler](https://coreos.github.io/rpm-ostree/compose-server). Other sites with information about CoreOS and building custom OStree(s):
This repository contains all the bits to get a working Ostree for Rocky Linux (8.6). Although Fedora and Red Hat CoreOS use (rpm)Ostree, this is NOT a CoreOS clone.
If you want to build a Rocky Linux CoreOS, in other words a Red Hat CoreOS clone, then checkout [coreos-assembler](https://coreos.github.io/rpm-ostree/compose-server). Other sites with information about CoreOS and building custom OStree(s):
* https://coreos.github.io/rpm-ostree/compose-server/
* https://www.osbuild.org/

View File

@ -4,7 +4,7 @@ keyboard us
timezone --utc Etc/UTC
rootpw --plaintext rocky
user --name=ansible --password=rocky --plaintext --gecos="Ansible User"
ostreesetup --nogpg --url=http://{{ dhcpd_next_server }}/ostree/repo/ --osname=rocky-coreos --remote=rocky-coreos --ref=rocky/x86_64/coreos
ostreesetup --nogpg --url=http://{{ dhcpd_next_server }}/ostree/repo/ --osname=rocky-ostree --remote=rocky-ostree --ref=rocky/x86_64/ostree
# Disk
zerombr

View File

@ -1,20 +1,6 @@
mkdir -p build/repo
cd build/
ostree --repo=repo init --mode=archive
sudo rpm-ostree compose tree --cachedir=/home/richard/rocky-coreos/build/cache --repo=/home/richard/rocky-coreos/build/repo config/manifest.yaml
sudo tar cvzf repo.tar.gz build/repo
scp repo.tar.gz root@192.168.122.89:
Commands/notes
# 2de keer
mkdir -p build/{repo,cache}
ostree --repo=build/repo init --mode=archive
sudo rpm-ostree compose tree --cachedir=/home/richard/rocky-coreos/build/cache --repo=/home/richard/rocky-coreos/build/repo config/manifest.yaml
####
ostree --repo=./build/repo ls rocky/x86_64/coreos
ostree --repo=./build/repo ls rocky/x86_64/coreos /etc
ostree --repo=./build/repo cat rocky/x86_64/coreos /usr/etc/passwd
ostree --repo=./build/repo ls rocky/x86_64/coreos /usr/lib/systemd/system/*get*
sudo rsync -av --delete /home/richard/rocky-coreos/build/repo root@192.168.122.89:/var/www/html/ostree/
ostree --repo=./build/repo ls rocky/x86_64/ostree
ostree --repo=./build/repo ls rocky/x86_64/ostree /etc
ostree --repo=./build/repo cat rocky/x86_64/ostree /usr/etc/passwd
ostree --repo=./build/repo ls rocky/x86_64/ostree /usr/lib/systemd/system/*get*

View File

@ -1,16 +1,22 @@
ref: rocky/${basearch}/coreos
ref: rocky/${basearch}/ostree
rojig:
name: rocky-coreos
summary: "Rocky Linux CoreOS"
name: rocky-ostree
summary: "Rocky Linux Ostree"
license: MIT
packages:
- rocky-release
releasever: 8
variables:
stream: testing
prod: false
repos:
- rocky-86-baseos
- rocky-86-appstream
- appstream
- baseos
include:
- manifests/rocky-coreos-base.yaml
- manifests/rocky-coreos-system_tools.yaml
- manifests/rocky-coreos-post.yaml
- manifests/rocky-ostree-base.yaml
- manifests/rocky-ostree-system_tools.yaml
- manifests/rocky-ostree-post.yaml

View File

@ -1,4 +1,4 @@
# config/manifests/rocky-coreos-system_tools.yaml
# config/manifests/rocky-ostree-system_tools.yaml
#
# Contains system (tools) packages which are often used on a regular
# system, but not needed for the base system to work

View File

@ -1,7 +1,7 @@
[rocky-86-appstream]
name=Rocky Linux 8.6 - AppStream
#baseurl=http://dl.rockylinux.org/pub/rocky/8.6/AppStream/x86_64/os/
baseurl=http://192.168.122.89/repos/rocky86/AppStream/
[appstream]
name=Rocky Linux $releasever - AppStream
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=AppStream-8
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/AppStream/$basearch/os/
gpgcheck=1
enabled=1
countme=1

View File

@ -1,7 +1,7 @@
[rocky-86-baseos]
name=Rocky Linux 8.6 - BaseOS
#baseurl=http://dl.rockylinux.org/pub/rocky/8.6/BaseOS/x86_64/os/
baseurl=http://192.168.122.89/repos/rocky86/BaseOS/
[baseos]
name=Rocky Linux $releasever - BaseOS
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=BaseOS-8
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
countme=1