Author SHA1 Message Date
Micah Abbott 2ed185f6d1 tier-1/gropwart: bail early on devicemapper targets
If the growpart script detects a DM target, exit early.

Signed-off-by: Micah Abbott <miabbott@redhat.com>
2024-10-29 14:35:10 -04:00
Colin Walters (Red Hat) 64a741188c Merge branch 'drop-arch-bootupd-filtering' into 'main'
manifest: Unconditionally include bootupd

See merge request fedora/bootc/base-images!28
2024-05-29 21:03:23 +00:00
Colin Walters fb882c9002 manifest: Unconditionally include bootupd
It's supported on all architectures now, even if it's
a no-op mostly on s390x today.

But specifically this will ensure we pull in zipl on s390x,
which *is* needed.

Signed-off-by: Colin Walters <walters@verbum.org>
2024-05-29 13:50:59 -04:00
Jonathan Lebon 9ed1a7fef3 Merge branch 'add-archive-repo' into 'main'
Add fedora-repos-archive

Closes #12

See merge request fedora/bootc/base-images!26
2024-05-29 13:52:34 +00:00
Colin Walters 33ba2536f3 Add fedora-repos-archive
For the same reason FCOS has included it forever; it allows
some skew between images and the RPM mirrors for version-sensitive
things like `kernel-devel`.

Closes: https://gitlab.com/fedora/bootc/base-images/-/issues/12
Signed-off-by: Colin Walters <walters@verbum.org>
2024-05-28 17:15:53 -04:00
Liora Milbaum 6beab2a659 Merge branch 'rawhide' into 'main'
Only rawhide

See merge request fedora/bootc/base-images!25
2024-05-28 17:04:03 +00:00
Liora Milbaum aaa71e6629 Merge branch 'renovate-config' into 'main'
Renovate configuration: f40 branch

See merge request fedora/bootc/base-images!24
2024-05-28 16:56:14 +00:00
Liora Milbaum f870a77a25 Only rawhide 2024-05-28 19:53:56 +03:00
Liora Milbaum 243848c59b Renovate configuration: f40 branch 2024-05-28 19:37:17 +03:00
9 changed files with 27 additions and 25 deletions

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 rev: v4.5.0
hooks: hooks:
- id: end-of-file-fixer - id: end-of-file-fixer
- id: trailing-whitespace - id: trailing-whitespace
+1 -1
View File
@@ -23,7 +23,7 @@
# Because it's generating a base image and uses containerbuildcontextization features itself. # Because it's generating a base image and uses containerbuildcontextization 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:40 as repos FROM quay.io/fedora/fedora:rawhide as repos
FROM quay.io/centos-bootc/bootc-image-builder:latest as builder FROM quay.io/centos-bootc/bootc-image-builder:latest as builder
ARG MANIFEST=fedora-bootc.yaml ARG MANIFEST=fedora-bootc.yaml
+1 -1
View File
@@ -3,7 +3,7 @@
"containers.bootc": "1", "containers.bootc": "1",
"bootc.diskimage-builder": "quay.io/centos-bootc/bootc-image-builder", "bootc.diskimage-builder": "quay.io/centos-bootc/bootc-image-builder",
"redhat.id": "fedora", "redhat.id": "fedora",
"redhat.version-id": "40" "redhat.version-id": "rawhide"
}, },
"StopSignal": "SIGRTMIN+3", "StopSignal": "SIGRTMIN+3",
"Env": [ "Env": [
+3 -6
View File
@@ -1,15 +1,12 @@
releasever: 40 releasever: rawhide
variables:
distro: "fedora"
repos: repos:
- fedora - rawhide
- updates
metadata: metadata:
name: fedora-boot-tier1 name: fedora-boot-tier1
summary: Fedora Bootable Tier 1 summary: Fedora Bootable Tier 1
include: include:
- fedora-generic.yaml
- tier-1/manifest.yaml - tier-1/manifest.yaml
- tier-1/kernel.yaml - tier-1/kernel.yaml
+7
View File
@@ -0,0 +1,7 @@
variables:
distro: "fedora"
# Fedora-specific packages here
packages:
# https://gitlab.com/fedora/bootc/base-images/-/issues/12
- fedora-repos-archive
+3 -6
View File
@@ -1,15 +1,12 @@
releasever: 40 releasever: rawhide
variables:
distro: "fedora"
repos: repos:
- fedora-devel - rawhide
- fedora-updates
metadata: metadata:
name: fedora-boot-tier0 name: fedora-boot-tier0
summary: Fedora Bootable Tier 0 summary: Fedora Bootable Tier 0
include: include:
- fedora-generic.yaml
- tier-0/manifest.yaml - tier-0/manifest.yaml
- tier-0/kernel.yaml - tier-0/kernel.yaml
+3 -1
View File
@@ -3,10 +3,12 @@
"extends": [ "extends": [
"github>platform-engineering-org/.github" "github>platform-engineering-org/.github"
], ],
"baseBranches": ["main", "f40"],
"packageRules": [ "packageRules": [
{ {
"matchPackageNames": ["quay.io/fedora/fedora"], "matchPackageNames": ["quay.io/fedora/fedora"],
"allowedVersions": "=40" "allowedVersions": "=40",
"matchBaseBranches": ["f40"]
} }
] ]
} }
+1 -5
View File
@@ -50,6 +50,7 @@ remove-from-packages:
include: include:
- bootc.yaml - bootc.yaml
- bootupd.yaml
- ostree.yaml - ostree.yaml
- initramfs.yaml - initramfs.yaml
- autoupdates.yaml - autoupdates.yaml
@@ -65,8 +66,3 @@ packages:
- container-selinux - container-selinux
# Needed for tpm2 bound luks # Needed for tpm2 bound luks
- tpm2-tools - tpm2-tools
# See https://github.com/coreos/bootupd
arch-include:
x86_64: bootupd.yaml
aarch64: bootupd.yaml
+7 -4
View File
@@ -3,15 +3,18 @@ set -eu
backing_device=$(findmnt -vno SOURCE /sysroot) backing_device=$(findmnt -vno SOURCE /sysroot)
echo "Backing device: ${backing_device}" echo "Backing device: ${backing_device}"
# Handling devicemapper targets is a whole other thing
case $backing_device in
/dev/mapper/*) echo "Not growing $backing_device"; exit 0 ;;
esac
syspath=/sys/class/block/$(basename "${backing_device}") syspath=/sys/class/block/$(basename "${backing_device}")
if ! test -d "${syspath}"; then if ! test -d "${syspath}"; then
echo "failed to find backing device ${syspath}"; exit 1 echo "failed to find backing device ${syspath}"; exit 1
fi fi
# Handling devicemapper targets is a whole other thing
case $backing_device in
/dev/mapper/*) "Not growing $backing_device"; exit 0 ;;
esac
# Note that we expect that the rootfs is on a partition # Note that we expect that the rootfs is on a partition
partition=$(cat "${syspath}"/partition) partition=$(cat "${syspath}"/partition)