Compare commits
9 Commits
wip-baseim
...
jamesp-for
| Author | SHA1 | Date |
|---|---|---|
|
|
67b144cbf9 | |
|
|
7b4e013126 | |
|
|
c1a4b38c46 | |
|
|
0ac5ee04ba | |
|
|
da3c6ef677 | |
|
|
5276e451f4 | |
|
|
3ebf803f5f | |
|
|
e62452d096 | |
|
|
d88208bfba |
|
|
@ -23,10 +23,10 @@
|
||||||
# Because it's generating a base image and uses containerization features itself.
|
# Because it's generating a base image and uses containerization features itself.
|
||||||
# In the future some of this can be lifted.
|
# In the future some of this can be lifted.
|
||||||
|
|
||||||
FROM quay.io/fedora/fedora:rawhide as repos
|
FROM quay.io/fedora/fedora:41 as repos
|
||||||
|
|
||||||
# BOOTSTRAPPING: This can be any image that has rpm-ostree and selinux-policy-targeted.
|
# BOOTSTRAPPING: This can be any image that has rpm-ostree and selinux-policy-targeted.
|
||||||
FROM quay.io/fedora/fedora:rawhide as builder
|
FROM quay.io/fedora/fedora:41 as builder
|
||||||
RUN dnf -y install rpm-ostree selinux-policy-targeted
|
RUN dnf -y install rpm-ostree selinux-policy-targeted
|
||||||
ARG MANIFEST=fedora-bootc.yaml
|
ARG MANIFEST=fedora-bootc.yaml
|
||||||
COPY --from=repos /etc/dnf/vars /etc/dnf/vars
|
COPY --from=repos /etc/dnf/vars /etc/dnf/vars
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
podman build \
|
||||||
|
--security-opt=label=disable \
|
||||||
|
--cap-add=all \
|
||||||
|
--device /dev/fuse \
|
||||||
|
-t localhost/fedora-bootc .
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
# NB: This treefile is used by the legacy pungi path only to build tier-1. It
|
||||||
|
# will be removed in the future.
|
||||||
|
releasever: 42
|
||||||
|
repos:
|
||||||
|
- fedora-devel
|
||||||
|
include: fedora-bootc.yaml
|
||||||
|
|
@ -5,3 +5,5 @@ variables:
|
||||||
packages:
|
packages:
|
||||||
# https://gitlab.com/fedora/bootc/base-images/-/issues/12
|
# https://gitlab.com/fedora/bootc/base-images/-/issues/12
|
||||||
- fedora-repos-archive
|
- fedora-repos-archive
|
||||||
|
# Not in RHEL10
|
||||||
|
- systemd-resolved
|
||||||
|
|
|
||||||
|
|
@ -26,3 +26,8 @@ postprocess:
|
||||||
set -xeuo pipefail
|
set -xeuo pipefail
|
||||||
# Transforms /usr/lib/ostree-boot into a bootupd-compatible update payload
|
# Transforms /usr/lib/ostree-boot into a bootupd-compatible update payload
|
||||||
/usr/bin/bootupctl backend generate-update-metadata
|
/usr/bin/bootupctl backend generate-update-metadata
|
||||||
|
- |
|
||||||
|
#!/bin/bash
|
||||||
|
# Workaround for https://issues.redhat.com/browse/RHEL-78104
|
||||||
|
set -xeuo pipefail
|
||||||
|
rm -vrf /usr/lib/ostree-boot/loader
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,10 @@ postprocess:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -xeuo pipefail
|
set -xeuo pipefail
|
||||||
source /usr/lib/os-release
|
source /usr/lib/os-release
|
||||||
# Check if the ID is Fedora and VERSION_ID is 42 or higher
|
|
||||||
if [[ "$ID" == "fedora" && "$VERSION_ID" -ge 42 ]]; then
|
|
||||||
echo -e "# kernel-install will not try to run dracut and allow rpm-ostree to\n\
|
echo -e "# kernel-install will not try to run dracut and allow rpm-ostree to\n\
|
||||||
# take over. Rpm-ostree will use this to know that it is responsible\n\
|
# take over. Rpm-ostree will use this to know that it is responsible\n\
|
||||||
# to run dracut and ensure that there is only one kernel in the image\n\
|
# to run dracut and ensure that there is only one kernel in the image\n\
|
||||||
layout=ostree" | tee /usr/lib/kernel/install.conf > /dev/null
|
layout=ostree" | tee /usr/lib/kernel/install.conf > /dev/null
|
||||||
fi
|
|
||||||
# By default dnf keeps multiple versions of the kernel, with this
|
# By default dnf keeps multiple versions of the kernel, with this
|
||||||
# configuration we tell dnf to treat the kernel as everything else.
|
# configuration we tell dnf to treat the kernel as everything else.
|
||||||
# https://dnf.readthedocs.io/en/latest/conf_ref.html#main-options
|
# https://dnf.readthedocs.io/en/latest/conf_ref.html#main-options
|
||||||
|
|
|
||||||
|
|
@ -3,15 +3,8 @@
|
||||||
packages:
|
packages:
|
||||||
# Additional file compression/decompression
|
# Additional file compression/decompression
|
||||||
- bzip2 zstd
|
- bzip2 zstd
|
||||||
# Improved MOTD experience
|
|
||||||
- console-login-helper-messages-issuegen
|
|
||||||
- console-login-helper-messages-profile
|
|
||||||
# kdump support
|
# kdump support
|
||||||
# https://github.com/coreos/fedora-coreos-tracker/issues/622
|
# https://github.com/coreos/fedora-coreos-tracker/issues/622
|
||||||
- kexec-tools
|
- kexec-tools
|
||||||
# Container tooling
|
|
||||||
- toolbox
|
|
||||||
# nvme-cli for managing nvme disks
|
# nvme-cli for managing nvme disks
|
||||||
- nvme-cli
|
- nvme-cli
|
||||||
# Used by admins interactively
|
|
||||||
- lsof
|
|
||||||
|
|
|
||||||
|
|
@ -3,28 +3,18 @@ recommends: true
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- ../tier-x/manifest.yaml
|
- ../tier-x/manifest.yaml
|
||||||
- autoupdates.yaml
|
|
||||||
- networking-tools.yaml
|
- networking-tools.yaml
|
||||||
- system-configuration.yaml
|
- system-configuration.yaml
|
||||||
- coreos-user-experience.yaml
|
- coreos-user-experience.yaml
|
||||||
- persistent-journal.yaml
|
- persistent-journal.yaml
|
||||||
- initramfs-full.yaml
|
- initramfs-full.yaml
|
||||||
- generic-growfs.yaml
|
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
# Include and set the default editor
|
|
||||||
- nano
|
|
||||||
- nfs-utils
|
- nfs-utils
|
||||||
# Additional firewall support; we aren't including these in RHCOS or they
|
# Additional firewall support; we aren't including these in RHCOS or they
|
||||||
# don't exist in RHEL
|
# don't exist in RHEL
|
||||||
- iptables-services
|
- iptables-services
|
||||||
- WALinuxAgent-udev
|
- WALinuxAgent-udev
|
||||||
# Allow communication between sudo and SSSD
|
|
||||||
# for caching sudo rules by SSSD.
|
|
||||||
# https://github.com/coreos/fedora-coreos-tracker/issues/445
|
|
||||||
- libsss_sudo
|
|
||||||
# SSSD; we only ship a subset of the backends
|
|
||||||
- sssd-client sssd-ad sssd-ipa sssd-krb5 sssd-ldap
|
|
||||||
# Used by admins interactively
|
# Used by admins interactively
|
||||||
- openssl
|
- openssl
|
||||||
# Provides terminal tools like clear, reset, tput, and tset
|
# Provides terminal tools like clear, reset, tput, and tset
|
||||||
|
|
@ -34,19 +24,10 @@ packages:
|
||||||
# zram-generator (but not zram-generator-defaults) for F33 change
|
# zram-generator (but not zram-generator-defaults) for F33 change
|
||||||
# https://github.com/coreos/fedora-coreos-tracker/issues/509
|
# https://github.com/coreos/fedora-coreos-tracker/issues/509
|
||||||
- zram-generator
|
- zram-generator
|
||||||
# This one is in Python so isn't in FCOS, but we can safely add it here.
|
|
||||||
- sos
|
|
||||||
|
|
||||||
# These are random architecture-specific packages
|
# These are random architecture-specific packages
|
||||||
packages-x86_64:
|
packages-x86_64: []
|
||||||
- irqbalance
|
packages-aarch64: []
|
||||||
packages-ppc64le:
|
|
||||||
- irqbalance
|
|
||||||
- librtas
|
|
||||||
- powerpc-utils-core
|
|
||||||
- ppc64-diag-rtas
|
|
||||||
packages-aarch64:
|
|
||||||
- irqbalance
|
|
||||||
|
|
||||||
postprocess:
|
postprocess:
|
||||||
# Undo RPM scripts enabling units; we want the presets to be canonical
|
# Undo RPM scripts enabling units; we want the presets to be canonical
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,6 @@
|
||||||
packages:
|
packages:
|
||||||
# Explicit dep for RHEL >= 10
|
# Explicit dep for RHEL >= 10
|
||||||
- crypto-policies-scripts
|
- crypto-policies-scripts
|
||||||
# Configuring SSH keys, cloud provider check-in, etc
|
|
||||||
# TODO: needs Ignition kargs
|
|
||||||
# - afterburn afterburn-dracut
|
|
||||||
# NTP support
|
# NTP support
|
||||||
- chrony
|
- chrony
|
||||||
# Storage configuration/management
|
# Storage configuration/management
|
||||||
|
|
@ -25,6 +22,3 @@ packages:
|
||||||
# /etc/logrotate.d to work. Really, this is a legacy thing, but if we don't
|
# /etc/logrotate.d to work. Really, this is a legacy thing, but if we don't
|
||||||
# have it then people's disks will slowly fill up with logs.
|
# have it then people's disks will slowly fill up with logs.
|
||||||
- logrotate
|
- logrotate
|
||||||
# Boost starving threads
|
|
||||||
# https://github.com/coreos/fedora-coreos-tracker/issues/753
|
|
||||||
- stalld
|
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@ packages:
|
||||||
- NetworkManager
|
- NetworkManager
|
||||||
- openssh-clients
|
- openssh-clients
|
||||||
- openssh-server
|
- openssh-server
|
||||||
- systemd-resolved
|
|
||||||
# linux-firmware now a recommends so let's explicitly include it
|
# linux-firmware now a recommends so let's explicitly include it
|
||||||
# https://gitlab.com/cki-project/kernel-ark/-/commit/32271d0cd9bd52d386eb35497c4876a8f041f70b
|
# https://gitlab.com/cki-project/kernel-ark/-/commit/32271d0cd9bd52d386eb35497c4876a8f041f70b
|
||||||
# https://src.fedoraproject.org/rpms/kernel/c/f55c3e9ed8605ff28cb9a922efbab1055947e213?branch=rawhide
|
# https://src.fedoraproject.org/rpms/kernel/c/f55c3e9ed8605ff28cb9a922efbab1055947e213?branch=rawhide
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue