Commit graph

525 commits

Author SHA1 Message Date
Timothée Ravier
36c70e09ea common: Use add-determinism as workraround for pyc mtime mismatch
See: https://gitlab.com/fedora/bootc/tracker/-/issues/3
See: https://pagure.io/workstation-ostree-config/pull-request/505
See: https://github.com/ostreedev/ostree/issues/1469
2024-07-19 17:13:49 +02:00
Timothée Ravier
9e04e53bfb Revert "postprocess: Workaround for Python timestamp mismatch"
See: https://pagure.io/workstation-ostree-config/pull-request/507
See: https://github.com/keszybz/add-determinism/pull/27
See: https://gitlab.com/fedora/bootc/tracker/-/issues/3

This reverts commit d085e9fecc.
2024-07-19 16:48:03 +02:00
Timothée Ravier
20d8158735 Bootable Containers: Enable composefs by default
Only enabled for bootable containers as we need to remove ostree-grub2
first.

See: https://fedoraproject.org/wiki/Changes/ComposefsAtomicCoreOSIoT
2024-07-17 17:46:39 +02:00
Timothée Ravier
599c862ece Bootable Containers: Remove ostree-grub2
Remove ostree-grub2 to avoid issues with composefs.

We can not remove it yet from the classic ostree ones as we need at
least two Fedora releases where bootupd is included and enabled by
default as a transition period to make sure we don't break users.

See: https://gitlab.com/fedora/ostree/sig/-/issues/35
See: https://github.com/fedora-silverblue/issue-tracker/issues/120
See: https://gitlab.com/fedora/ostree/sig/-/issues/1
2024-07-17 17:46:39 +02:00
Timothée Ravier
4bb588b37b comps-sync f41 2024-07-17
See: https://pagure.io/fedora-comps/pull-request/982
See: https://pagure.io/fedora-comps/pull-request/983
2024-07-17 17:46:39 +02:00
Timothée Ravier
93c6f5e13d Silverblue: Drop X11 from default installation
See: https://fedoraproject.org/wiki/Changes/WaylandOnlyGNOMEWorkstationMedia
2024-07-15 15:34:06 +02:00
Timothée Ravier
9c64ee7b6a comps-sync f41 2024-07-15
See: https://pagure.io/fedora-comps/pull-request/972
See: https://pagure.io/fedora-comps/pull-request/979
2024-07-15 15:25:02 +02:00
Timothée Ravier
c3c1d750c1 Bootable Containers: Enable bootupd
With the following issues now fixed:
- https://github.com/coreos/bootupd/issues/630
- https://github.com/coreos/bootupd/issues/658
- https://github.com/coreos/bootupd/issues/551

And corresponding support in Anaconda:
- https://github.com/rhinstaller/anaconda/pull/5508

We can now (re-)enable bootupd for the bootable containers.

After a bit of testing, we will enable it for the classic ostree ones.

See: https://gitlab.com/fedora/ostree/sig/-/issues/1
2024-06-25 10:02:25 +02:00
Timothée Ravier
1957b4d505 comps-sync f41 2024-06-24 2024-06-24 20:22:49 +02:00
Timothée Ravier
c65a7a512e Bootable Containers: Include DNF5 and bootc
Add DNF5 and bootc to all Atomic Desktops Bootable Containers.

See: https://fedoraproject.org/wiki/Changes/DNFAndBootcInImageModeFedora
See: https://fedoraproject.org/wiki/Changes/SwitchToDnf5
See: https://pagure.io/fedora-comps/pull-request/960

Kinoite variants are temporarily excluded from this change until the
debuginfo plugin is available with DNF5 for DrKonqi.

See: https://pagure.io/fedora-kde/SIG/issue/519
2024-06-21 12:49:48 +02:00
Timothée Ravier
63be95433a Move dnf exclusion to classic ostree variants only
Prepare for DNF5 inclusion in Bootable Containers by moving the
exclusion to a manifest that is included only for the classic ostree
variants.

See: https://fedoraproject.org/wiki/Changes/DNFAndBootcInImageModeFedora
2024-06-21 12:45:44 +02:00
Timothée Ravier
65ddf54fd8 justfile: Force gzip compression format for images
Keep all the containers image compressed with gzip until rpm-ostree with
support for zstd & ztd::chunked images (2024.6) lands in F40 & F39.

See: https://fedoraproject.org/wiki/Changes/zstd:chunked
2024-06-21 12:33:26 +02:00
Timothée Ravier
f72a8fcfe5 justfile: Factor skopeo args for container image upload 2024-06-21 12:25:46 +02:00
Timothée Ravier
3bd5718f4a ci/validate: Test by building a Bootable Container
Switch to building a bootable container by default.
2024-06-19 18:54:02 +02:00
Timothée Ravier
85a0198db5 Update justfile to compose -ostree for legacy 2024-06-19 18:54:02 +02:00
Timothée Ravier
98680de7cf Add compatibility symlinks for classic ostree manifests
Keep stable names for the variants that are currently built in the
Fedora infrastructure.

We can remove those once we have landed the rename in this repo and the
rename in the pungi-fedora config.
2024-06-19 18:54:02 +02:00
Timothée Ravier
47170ee169 Split Bootable Containers manifest from classic ostree ones
To be able to build images in the Fedora infrastructure with distinct
changes in the container vs classic ostree case, we need to split those
into a common manifest and a top level one that includes only the repos
and other distinct includes.
2024-06-19 18:54:02 +02:00
Timothée Ravier
6b402254c9 Use new Atomic names 2024-06-19 18:54:02 +02:00
Timothée Ravier
3a9a0760ef Update manifests names for variants and their package lists
- Strip the 'fedora' prefix from variant names
- Name the packages list manifest for each variant accordingly
2024-06-13 11:30:19 +02:00
Timothée Ravier
28bf47caa9 Move common manifest includes to variants manifests
- Rename common manifests to remove fedora prefix & ostree mention
- Directly include the common manifest in each variant manifest to
  reduces the number of level of indirection for the manifests
2024-06-13 11:30:19 +02:00
Timothée Ravier
f3f8fdb521 initramfs.yaml: Misc empty line fixup 2024-06-13 11:30:19 +02:00
Timothée Ravier
457e89b560 ci: Workaround broken dnf5 in cloud images
See: https://pagure.io/fedora-ci/general/issue/474
2024-06-13 11:30:19 +02:00
Timothée Ravier
6cd2f8437a ci: Update all pacakges on the system first 2024-06-13 11:28:15 +02:00
Micah Abbott
8b18da4c14 README: add note about just
Signed-off-by: Micah Abbott <miabbott@redhat.com>
2024-06-11 09:28:02 -04:00
Timothée Ravier
3b190aff6c common: Setup read only sysroot via ostree config 2024-06-11 10:36:44 +02:00
Timothée Ravier
0667595535 ci/validate: Ignore correctly indented lines starting with [ 2024-06-11 10:36:44 +02:00
Timothée Ravier
440fa5e438 initramfs: Add tpm2-tss & systemd-pcrphase for LUKS unlocking
Enable both modules to make it easier to setup TPM bound LUKS device
unlocking.

See: https://gitlab.com/fedora/ostree/sig/-/issues/33
2024-06-11 10:36:44 +02:00
Timothée Ravier
5585f60aa0 initramfs: Add dracut config for initramfs generation
Add a default dracut configuration for initramfs generation.

This is currently taken from:
- https://gitlab.com/fedora/bootc/base-images/-/blob/main/tier-0/initramfs.yaml
- https://github.com/coreos/fedora-coreos-config/tree/testing-devel/overlay.d/05core/usr/lib/dracut/dracut.conf.d

This will ideally be unified once we complete the Bootable Containers
Initiative roadmap.
2024-06-11 10:36:44 +02:00
Micah Abbott
785ae96dee README: add instructions for using comps-sync.py
Signed-off-by: Micah Abbott <miabbott@redhat.com>
2024-06-11 08:35:52 +00:00
Micah Abbott
158bb31a2e comps-sync f41 2024-06-10
See: https://pagure.io/fedora-comps/pull-request/977
See: https://pagure.io/fedora-comps/pull-request/975

Signed-off-by: Micah Abbott <miabbott@redhat.com>
2024-06-10 15:07:42 -04:00
Timothée Ravier
3762e08a77 Fedora Kinoite Mobile: Add initial manifests
See: https://pagure.io/fedora-kde/SIG/issue/506
See: https://pagure.io/fedora-kde/SIG/issue/41
See: https://pagure.io/fedora-kde/SIG/issue/510
2024-06-04 22:45:21 +02:00
Timothée Ravier
6ee3928c40 comps-sync f41 2024-06-03
See: https://pagure.io/fedora-comps/pull-request/973
See: https://pagure.io/fedora-kde/SIG/issue/522
2024-06-03 20:16:35 +02:00
Timothée Ravier
5e3a12a17d comps-sync f41 2024-05-14
See: https://pagure.io/fedora-kde/SIG/issue/502
See: https://pagure.io/fedora-comps/pull-request/965
2024-05-14 15:28:18 +02:00
Timothée Ravier
5734183ac3 comps-sync f41 2024-04-24
See: https://pagure.io/fedora-comps/pull-request/959
See: https://github.com/fedora-silverblue/issue-tracker/issues/555
2024-04-24 20:27:30 +02:00
Timothée Ravier
aff834d942 fedora-common-ostree: Add slirp4netns
Keep slirp4netns for rootless containers until it's fully deprecated in
podman.

See: https://github.com/fedora-silverblue/issue-tracker/issues/547
See: https://blog.podman.io/2024/03/podman-5-0-breaking-changes-in-detail/
2024-04-12 16:26:01 +00:00
Timothée Ravier
d085e9fecc postprocess: Workaround for Python timestamp mismatch
Python mtime timestamp logic does not work well with ostree force 0
mtime.

Use a small script to post-process all compiled '.pyc' and force the
timestamp to 0.

See: https://github.com/ostreedev/ostree/issues/1469

Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
2024-04-12 17:39:08 +02:00
Timothée Ravier
fd6487c95f zuul: Verify that the comps and manifests are synced
Best effort (as it will only run on PRs) check for comps / manifests
sync.
2024-04-04 10:17:34 +02:00
Timothée Ravier
abd2d7c6df justfile: Add a recipe to check for comps sync changes
Will be used by Zuul CI.
2024-03-28 18:10:27 +01:00
Timothée Ravier
3672bbd10c comps-sync.py: Return non-zero if changes are needed but not saved
This will let us use that in CI to check for pending comps-sync changes.
2024-03-28 18:09:49 +01:00
Timothée Ravier
8ac9e3e367 Temporarily remove bootupd support
See: https://gitlab.com/fedora/ostree/sig/-/issues/1
2024-03-26 11:26:57 +01:00
Timothée Ravier
62801af663 comps-sync f41 2024-03-23
See: https://pagure.io/fedora-comps/pull-request/945
See: https://pagure.io/fedora-comps/pull-request/938
See: https://pagure.io/fedora-kde/SIG/issue/486
2024-03-23 16:56:27 +01:00
Timothée Ravier
e3144ba384 comps-sync f41 2024-03-14
See: https://pagure.io/fedora-comps/pull-request/944
2024-03-14 14:27:50 +01:00
Timothée Ravier
8ac5599091 justfile: Remove set -x from common interactive commands
For those commands, the -x output is mostly noise.
2024-03-14 14:25:19 +01:00
Timothée Ravier
4b90deb10d ci: Split dependency check and run checks all on failures
- Split the dependency check into a distinct step for each variant
- If the dependency test failed, still run the compose base test to get
  results about it
- Add a step at the end to make sure that if any step fails, the
  workflow still fail

See: https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_error_handling.html#ignoring-failed-commands
See discussion in: https://pagure.io/workstation-ostree-config/pull-request/493
2024-03-01 20:10:05 +01:00
Timothée Ravier
8e0b7314f9 ci: Fix yaml lint 2024-03-01 20:10:05 +01:00
Timothée Ravier
97c49fdb16 ci/validate: Also validate Zuul YAML config 2024-03-01 20:10:05 +01:00
Timothée Ravier
44ba47cd29 zuul: Fix YAML indentation 2024-03-01 19:32:37 +01:00
Timothée Ravier
760544f466 justfile: Run compose-dry-run for a single variant
We'll run it for all official variants in the Ansible playbook used for
the Zuul CI instead.
2024-03-01 19:08:36 +01:00
Timothée Ravier
6b449c657f Zuul: Unify all jobs to save on CI costs
We need a VM for both the compose-dry-run and the compose-base tests
thus to avoid spawning two VMs in Zuul, let's keep everything in a
single job to save money.
2024-02-29 16:28:33 +01:00
Timothée Ravier
d0d0a33bdb Import GitLab CI config
This config is not used in Fedora infra (see `.zuul.yaml` instead) but
is used for testing in https://gitlab.com/fedora/ostree/ci-test.

Importing it here makes synchronizing changes accross the repos easier.

Co-authored by: Alexej Kowalew <616b2f@gmail.com>
2024-02-28 20:05:21 +01:00