Skip to content
/ corehost Public

A Fedora CoreOS image with some development packages built in

Notifications You must be signed in to change notification settings

ii/corehost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

corehost

A Fedora CoreOS image with some development packages built in

about

  • automatically staged updates
  • updates are applied on reboot
  • image is signed

Switching to the image

reset to a clean state

rpm-ostree reset

rebase to the image

rpm-ostree rebase ostree-unverified-registry:ghcr.io/ii/corehost:stable

(as root) and reboot

then rebase to the signed version

rpm-ostree rebase ostree-image-signed:docker://ghcr.io/ii/corehost:stable

Making changes

to add new files to the file system add them hierarchically in the ./files/ directory.

new packages are added in the ./Containerfile like so:

RUN rpm-ostree override remove \
  PACKAGE_TO_REMOVE_1 \
  PACKAGE_TO_REMOVE_2 \
  PACKAGE_TO_REMOVE_3 \
  --install=PACKAGE_TO_INSTALL_1 \
  --install=PACKAGE_TO_INSTALL_2 \
  --install=PACKAGE_TO_INSTALL_3

services are managed inline with systemctl enable and systemctl disable

No-time iteration

given an image is built in CI and pushed

rpm-ostree upgrade
rpm-ostree apply-live

Build image with bootc-image-builder

build a qcow2 image with the following

mkdir -p ./output
sudo podman run \
    --rm \
    -it \
    --privileged \
    --pull=newer \
    --security-opt label=type:unconfined_t \
    -v $(pwd)/output:/output \
    quay.io/centos-bootc/bootc-image-builder:latest \
    --type qcow2 \
    ghcr.io/ii/corehost:stable

to output to ./output/qcow2/disk.qcow2.

Build ISO with isogenerator

sudo podman run \
  --rm --privileged \
  -v ./output:/isogenerator/output \
  -e IMAGE_REPO="ghcr.io/ii" \
  -e IMAGE_NAME="corehost" \
  -e VARIANT="coreos" \
  -e IMAGE_TAG="stable" \
  ghcr.io/ublue-os/isogenerator

Verifying an image

verify an image is signed by this repo's key with the following command

cosign verify --key ./cosign.pub IMAGE

Equinix Metal iPXE booting

read this doc

About

A Fedora CoreOS image with some development packages built in

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages