4 Commits
Author SHA1 Message Date
Liora Milbaum e968082085 Merge branch 'renovate/f40-all' into 'f40'
chore(deps): update pre-commit hook pre-commit/pre-commit-hooks to v4.6.0 (f40)

See merge request fedora/bootc/base-images!30
2024-06-03 07:20:29 +00:00
Platform Engineering Bot 53fcaa9169 chore(deps): update pre-commit hook pre-commit/pre-commit-hooks to v4.6.0
Signed-off-by: Platform Engineering Bot <platform-engineering@redhat.com>
2024-06-03 00:06:01 +00:00
Liora Milbaum 0a3e4e6c4b Merge branch 'refactoring' into 'f40'
Only Fedora 40

See merge request fedora/bootc/base-images!23
2024-05-28 17:04:31 +00:00
Liora Milbaum 6164af490f Only Fedora 40 2024-05-28 19:53:32 +03:00
9 changed files with 25 additions and 27 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: v4.5.0 rev: v4.6.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:rawhide as repos FROM quay.io/fedora/fedora:40 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": "rawhide" "redhat.version-id": "40"
}, },
"StopSignal": "SIGRTMIN+3", "StopSignal": "SIGRTMIN+3",
"Env": [ "Env": [
+6 -3
View File
@@ -1,12 +1,15 @@
releasever: rawhide releasever: 40
variables:
distro: "fedora"
repos: repos:
- rawhide - fedora
- 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
@@ -1,7 +0,0 @@
variables:
distro: "fedora"
# Fedora-specific packages here
packages:
# https://gitlab.com/fedora/bootc/base-images/-/issues/12
- fedora-repos-archive
+6 -3
View File
@@ -1,12 +1,15 @@
releasever: rawhide releasever: 40
variables:
distro: "fedora"
repos: repos:
- rawhide - fedora-devel
- 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
+1 -3
View File
@@ -3,12 +3,10 @@
"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"]
} }
] ]
} }
+5 -1
View File
@@ -50,7 +50,6 @@ remove-from-packages:
include: include:
- bootc.yaml - bootc.yaml
- bootupd.yaml
- ostree.yaml - ostree.yaml
- initramfs.yaml - initramfs.yaml
- autoupdates.yaml - autoupdates.yaml
@@ -66,3 +65,8 @@ 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
+4 -7
View File
@@ -3,18 +3,15 @@ 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)