Create base images too

This commit is contained in:
2025-09-12 12:05:52 -04:00
parent 40e9746f72
commit 586eea808f
6 changed files with 52 additions and 11 deletions

View File

@@ -54,6 +54,8 @@ base-images:
parallel: parallel:
matrix: matrix:
- RECIPE: - RECIPE:
- base.yml
- base-nvidia.yml
- base-cosmic.yml - base-cosmic.yml
- base-cosmic-nvidia.yml - base-cosmic-nvidia.yml
- base-combo.yml - base-combo.yml

View File

@@ -0,0 +1,9 @@
[Unit]
Description=Apply bootc updates
Documentation=man:bootc(8)
ConditionPathExists=/run/ostree-booted
[Service]
Type=oneshot
# ExecStart=/usr/bin/bootc update --apply --quiet
ExecStart=/usr/bin/bootc update --quiet

View File

@@ -0,0 +1,14 @@
[Unit]
Description=Apply bootc updates
Documentation=man:bootc(8)
ConditionPathExists=/run/ostree-booted
[Timer]
OnBootSec=1h
# This time is relatively arbitrary and obviously expected to be overridden/changed
OnUnitInactiveSec=8h
# When deploying a large number of systems, it may be beneficial to increase this value to help with load on the registry.
RandomizedDelaySec=2h
[Install]
WantedBy=timers.target

14
recipes/base-nvidia.yml Normal file
View File

@@ -0,0 +1,14 @@
---
# yaml-language-server: $schema=https://schema.blue-build.org/recipe-v1.json
name: cosmic
base-image: quay.io/fedora-ostree-desktops/base-atomic
image-version: 42
description: The base image of Wunker OS
modules:
- from-file: base/common.yml
- from-file: base/nvidia.yml
- type: os-release
properties:
NAME: WunkerOS
PRETTY_NAME: Wunker OS for Nvidia
- from-file: base/post-build.yml

13
recipes/base.yml Normal file
View File

@@ -0,0 +1,13 @@
---
# yaml-language-server: $schema=https://schema.blue-build.org/recipe-v1.json
name: cosmic
base-image: quay.io/fedora-ostree-desktops/base-atomic
image-version: 42
description: The base image of Wunker OS
modules:
- from-file: base/common.yml
- type: os-release
properties:
NAME: WunkerOS
PRETTY_NAME: Wunker OS
- from-file: base/post-build.yml

View File

@@ -3,8 +3,6 @@
modules: modules:
- type: files - type: files
files: files:
- source: bootc-update
destination: /usr/lib/systemd/system
- source: base - source: base
destination: / destination: /
- type: systemd - type: systemd
@@ -14,15 +12,6 @@ modules:
enabled: enabled:
- bootc-fetch-apply-updates.timer - bootc-fetch-apply-updates.timer
# - type: dnf
# repos:
# cleanup: true
# copr:
# - ublue-os/packages
# - ublue-os/staging
# install:
# packages:
- type: dnf - type: dnf
repos: repos:
cleanup: true cleanup: true