Commit Graph

40 Commits

Author SHA1 Message Date
Jonathan Lebon 9410195760
tier-1: drop redundant tier-0 symlinks
Instead of re-symlinking every tier-0 manifest, just include the tier-0
manifest directly. That way, rpm-ostree will already know to resolve its
manifests within the tier-0 directory.
2024-09-16 09:18:05 -04:00
Jonathan Lebon 4e736cc6bb
tier-1: drop unused kdump-aarch64-aws-workaround.yaml
At least in this repo's history, this file doesn't appear to have ever
been used.
2024-09-16 09:17:23 -04:00
Colin Walters 0da319f566 initramfs: Switch to `add_dracutmodules`
Per discussion in https://github.com/rhkdump/kdump-utils/pull/29#issuecomment-2303932537

This would have avoided kdump breakage, and the original motivation
of avoiding dracut error spam from missing things is gone now
that Fedora is using dracut-ng which has
d73cc24e11
2024-08-22 09:38:07 -04:00
Colin Walters ee7ceb348c system-config: Add crypto-policies-scripts
Addresses https://gitlab.com/fedora/bootc/examples/-/issues/14

Signed-off-by: Colin Walters <walters@verbum.org>
2024-08-13 10:33:31 -04:00
Micah Abbott e99b62981a 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-08-09 16:50:14 -04:00
Colin Walters 73fca28298 initramfs-full: Add fips
Part of enabling FIPS support by default.
See also https://gitlab.com/fedora/bootc/examples/-/merge_requests/49
2024-07-01 20:46:05 -04:00
Colin Walters (Red Hat) f36f5b680b Merge branch 'drop-not-rhel10-stuff' into 'main'
ux: Drop runc

See merge request fedora/bootc/base-images!18
2024-05-21 15:32:48 +00:00
Colin Walters 5bc105da9a networking: Drop NetworkManager-team & teamd
See https://github.com/coreos/fedora-coreos-tracker/issues/1727
2024-05-20 15:52:08 -04:00
Colin Walters 576a9ccf2c ux: Drop runc
- It isn't queued to ship in rhel10
- It duplicates crun
2024-05-20 15:49:39 -04:00
Paul Whalen b0fa1f1dcd tier-0: add dnf for building derived images
Signed-off-by: Paul Whalen <pwhalen@fedoraproject.org>
2024-05-08 08:14:30 -04:00
Colin Walters b69e7d90bf user-experience: Resync with FCOS
I don't entirely remember what happened here when forking from
CoreOS, but we definitely want toolbox and lsof at least, just
looking at the differences.

While we're here I did readd sos, but in another section.

Signed-off-by: Colin Walters <walters@verbum.org>
2024-05-03 16:34:22 -04:00
Colin Walters ae9118576b Add bootc-generic-growpart
This service is a backfill for lack of a better option
as a baseline to run in cloud/virt environments:

- Without cloud-init
- Even with cloud-init, as it doesn't yet support growing
  on ostree/composefs

Signed-off-by: Colin Walters <walters@verbum.org>
2024-05-01 10:31:12 -04:00
Jonathan Lebon 7ef1553020
tier-1: drop subscription-manager
This is only useful for RHEL developers who want to build RHEL
containers in the Fedora host and requires a subscription. Keep it out
by default; one can always of course re-layer it in a derived build.
2024-04-26 15:30:01 -04:00
Colin Walters 5179418ee4 manifest: Add vim-minimal
This got lost in the shuffling.
2024-04-11 13:42:46 -04:00
Colin Walters a26d669340 system-configuration: Add cloud-utils-growpart
This is a relatively small shell script, and was already split out
from cloud-init to support use cases like ours.

systemd-repart is a lot nicer but it isn't yet designed
for our use case (root is not Discoverable Partition).

Also systemd-repart doesn't handle LVM which this script
tries to support.

(IMO the real solution to stuff like this is either Stratis
 or equivalent)
2024-03-04 19:40:10 -05:00
Colin Walters 13f01e6735 Swap to nfs-utils, not nfs-utils-coreos
The `nfs-utils-coreos` package was created to not depend on
Python mainly, but we are way deep into many other packages
that do at this point.

There's some other package that `Requires: nfs-utils` that
this should fix.
2024-02-14 08:03:03 -05:00
Colin Walters fb8efab43f tier-0: Enable tmp.mount by default
The long-carried-forward patch to disable `tmp.mount` for RHEL
rears its head again.
2024-02-12 15:06:34 -05:00
Daniel J Walsh 8c7f342670 Add sos package to allow easy reporting of issues
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-06 16:32:04 -05:00
Colin Walters d858a847a3 tier-1: Enable dracut crypt module too
We want to support LUKS encrypted root filesystems in general.
We're shipping the code in the root, so we might as well enable
it in the initramfs.
2024-02-05 08:45:11 -05:00
Colin Walters 781e554adf
Merge pull request #200 from cgwalters/enable-rhsm
rpm-packaging: Add rhsm links
2024-01-26 17:25:18 -05:00
Colin Walters 1bfa82ef77 tier-1: Enable lvm dracut module
Right now we have an "allowlist" effectively for our dracut modules
because we specify a configuration in `/usr/lib/dracut/dracut.conf.d`
which seems to turn off autodetection.

Add in lvm which we definitely want to support.

Signed-off-by: Colin Walters <walters@verbum.org>
2024-01-25 09:20:41 -05:00
Colin Walters c5c5ca9ec0 rpm-packaging: Add rhsm links
This pulls in the code from dd35dd0e10
for the same reason.
2024-01-24 20:04:15 -05:00
Colin Walters 67462b0dbc Enable `bootc-fetch-apply-updates.service` by default
This landed in c13c9eb8dc
And we want to come out emphasizing it.

Signed-off-by: Colin Walters <walters@verbum.org>
2024-01-18 18:21:44 -05:00
Colin Walters 929e3e58e4 Add subscription-manager
We need this to access RHEL RPM content today.

(I would like longer term to be able to fetch RPMs from registries
 with a pull secret, xref https://github.com/coreos/rpm-ostree/issues/4155 )
2023-12-13 14:39:28 -05:00
Colin Walters dd0a042a17 Always add bootc install config
bootc isn't in C9S yet, but it is in the -dev images.  Add
the install config unconditionally so that `bootc install`
works in the `centos-bootc-dev` image.
2023-12-08 12:45:42 -05:00
Liora Milbaum 03033108a5 Mass rename tier-1/boot => bootc 2023-11-23 14:42:56 +02:00
Colin Walters 8a987bb166 tier-1: Add lvm2
We expect to support this by default.
2023-11-19 15:20:26 -05:00
Liora Milbaum 6fe2272322 Squash sagano identifier 2023-11-07 09:05:21 +02:00
Colin Walters f53dd4966e tier-1: Drop qemu emulators
These don't exist in C9S/ELN, and break the build on non-x86_64
on those.
2023-10-29 10:17:18 -04:00
Colin Walters 2ea1dcabc2 Enable readonly sysroot via config file
This is the more proper way to do it.
2023-10-21 16:03:18 -04:00
Colin Walters ec478a0a1b tier-1: Strip out various things not in ELN
We won't ship things not in ELN.
2023-09-29 17:59:20 -04:00
Colin Walters 925d2a89cf Move container entrypoint to tier 0 2023-09-28 16:29:56 -04:00
Colin Walters aabca8e623 networking: But do exclude systemd-networkd 2023-09-23 09:09:02 -04:00
Colin Walters 719024a2c1 tier-1: Enable recommends, fix podman
We were missing `container-selinux`...oops.  Fix that.  While
we're here..

- Fully re-enable `recommends: true` - this is not a small image,
  and so let's not try to override things.
- Drop out the old-style compat networking packages for podman,
  since this is a new image
2023-09-23 08:27:45 -04:00
Colin Walters e67a9ca22c tier-1: Add dnf (and for -dev, fetch from copr)
Part of the aim of this project is to make `dnf` "Just work"
in a bootable container native host.

There's some details to work through, but tier-1 is already
large, and this doesn't add much more.
2023-09-22 10:57:29 -04:00
Colin Walters d6c5c14f38 tier-1: Enable persistent journal by default
The copies of this never stop!
2023-09-21 17:00:10 -04:00
Colin Walters dcebb7adac firmware: Include fwupd
I think this makes sense; in theory you can use bare metal
but not ship fwupd, but eh.
2023-09-15 17:51:21 -04:00
Colin Walters 29f6c6fcd2 manifests: Split out firmware, do use bootable-rpm-ostree 2023-09-15 17:30:44 -04:00
Colin Walters 7361f26eeb Introduce a tier-0 image
This is basically just:

- kernel
- systemd
- selinux-policy-targeted
- bootc

Notably it doesn't have `rpm-ostree` or `rpm`, or many other things.
It also doesn't even have `linux-firmware`.

And no `openssh`!

It's almost certain that you need to derive from this, but
it should be a suitable starting point.

TODO: Add something like

```
$ dnf-system-bootstrap
Installing packaging tools from quay.io/fedora/fedora-boot-dnf@sha256:abcd...)
 # This would be basically all the packages not in tier-0 that
 # are enough to give `dnf install`
$ dnf install cowsay
 # Install critical stuff
$ dnf system-bootstrap remove
 # Remove everything that we added for the package system, that isn't
 # a dependency of what the user wants!
```

(In theory we could make this work with multi-stage builds, but
 it's a little hard)
2023-09-15 15:11:01 -04:00
Colin Walters 380886b80a A few renames; oscore -> tier-1
Prep for multiple tiers.
2023-09-13 17:45:16 -04:00