Commit graph

47 commits

Author SHA1 Message Date
Timothée Ravier
b5cc3c0199 Revert "Enable bootupd integration now that we use unified core"
Need changes in Anaconda:

```
org.fedoraproject.Anaconda.Modules.Storage:INFO:anaconda.modules.common.task.task:Install the bootloader
org.fedoraproject.Anaconda.Modules.Storage:DEBUG:anaconda.modules.storage.bootloader.utils:Installing the boot loader.
org.fedoraproject.Anaconda.Modules.Storage:INFO:anaconda.modules.storage.bootloader.utils:boot loader stage1 target device is vda
org.fedoraproject.Anaconda.Modules.Storage:INFO:anaconda.modules.storage.bootloader.utils:boot loader stage2 target device is vda2
org.fedoraproject.Anaconda.Modules.Storage:INFO:anaconda.modules.storage.bootloader.grub2:bootloader.py: used boot args: rhgb quiet
org.fedoraproject.Anaconda.Modules.Storage:INFO:program:Running in chroot '/mnt/sysroot'... grub2-editenv - set menu_auto_hide=1 boot_success=1
org.fedoraproject.Anaconda.Modules.Storage:INFO:program:grub2-editenv: error: cannot open `/boot/grub2/grubenv.new': No such file or directory.
org.fedoraproject.Anaconda.Modules.Storage:DEBUG:program:Return code: 1
```

See: https://pagure.io/workstation-ostree-config/pull-request/330

This reverts commit 819da5c8ec.
2023-07-26 18:17:27 +02:00
Timothée Ravier
819da5c8ec Enable bootupd integration now that we use unified core
See: https://fedoraproject.org/wiki/Changes/FedoraSilverblueBootupd
See: https://fedoraproject.org/wiki/Changes/FedoraSilverblueUnifiedCore

Revert "Disable bootupd integration until we use unified core"
This reverts commit a1a8bbe8bb.
2023-07-25 16:20:41 +02:00
Timothée Ravier
cb24c527ed fedora-common-ostree: Exclude dnf dependencies
Make sure to always exclude dnf, even when pulled in as a dependency.
2023-07-04 10:35:44 +02:00
Timothée Ravier
32d3823b99 fedora-common-ostree: Add workaround for nfs-client.target
See: https://bugzilla.redhat.com/show_bug.cgi?id=2218006
2023-06-30 16:08:13 +02:00
Timothée Ravier
fa59f1ec28 fedora-common-ostree: Make presets canonical
This ensures that only services defined in presets are enabled by
default. This has two advantages:
- services enabed in RPM scriptlets are dropped
- new services can be enabled by default simply by adding them to
  presets

This mirrors the behaviour of Fedora CoreOS. For more informations, see:
- https://github.com/coreos/fedora-coreos-config/blob/testing-devel/manifests/ignition-and-ostree.yaml#L39..L48
- https://github.com/coreos/fedora-coreos-config/pull/73
- https://github.com/coreos/fedora-coreos-config/pull/77
- https://github.com/coreos/fedora-coreos-config/pull/122
- https://github.com/coreos/rpm-ostree/issues/1803
2023-06-30 16:00:14 +02:00
Colin Walters
d4a27985fa fedora-common-ostree: Default to bash
That said, maybe someone wants to do something else for these
images, but this is kind of the lowest common denominator...

Part of https://pagure.io/releng/issue/11324
2023-03-13 17:03:12 -04:00
Timothée Ravier
9dc9105ddb fedora-common-ostree: Workaround for unified-core mode change
Remove the `loader` directory that conflicts with the `loader` symlink
that is installed by Anaconda.

See: https://pagure.io/pungi-fedora/pull-request/1115
See: fa42c8b425/pyanaconda/modules/payloads/payload/rpm_ostree/installation.py (L307)
2023-02-12 13:54:37 +01:00
Timothée Ravier
636bb97493 Rawhide is now Fedora 39 2023-02-10 15:21:30 +01:00
Timothée Ravier
18f3fdf975 Update comments about package inclusion 2023-01-24 10:25:42 +01:00
Timothée Ravier
66eef7a634 common: Add git-core-doc
Do not include "full" Git as it brings in Perl.
Explicitely add Git docs.

Fixes: https://github.com/fedora-silverblue/issue-tracker/issues/387
2022-11-22 12:49:09 +01:00
Adam Williamson
6a689cc380 Drop some now-unneeded manual handling of arch-specific packages
This lets the recently-merged improved arch-specific package
support handle all the arch-specific packages which were
previously excluded in `comps-sync-exclude-list.yml` and listed
manually in `fedora-common-ostree.yaml`. As the diff shows,
the sync script now correctly includes the same packages for
the same arches in `fedora-common-ostree-pkgs.yaml`, plus a few
appropriate additions of things that should be there but had
been left out, on ppc64le and aarch64.

We also drop the `packages-armhfp` and `packages-ppc64` lists,
as we no longer build for either of those arches. This allows
us to move `ostree-grub2` into the non-arch-specific list, since
it's no longer left out on any arch we care about.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-11-09 19:10:17 +00:00
Colin Walters
a1a8bbe8bb Disable bootupd integration until we use unified core
The bootupd code relies on having `/usr/lib/ostree-boot`, which
we only get in unified core mode.
2022-11-02 20:12:58 +00:00
Colin Walters
43a47ea209 Add bootupd integration
This does what we should have done originally, and copies the
bootupd bits directly from
https://github.com/coreos/fedora-coreos-config/blob/testing-devel/manifests/bootupd.yaml

And uses them via includes.
2022-10-16 15:54:15 -04:00
Timothée Ravier
30894f26a5 common: Move sysroot RO script to postprocess-script
Bash Heredoc in inline YAML string is tricky. Use an independent
post-process script instead.

Fixes: 5bbc140 Revert "Revert "common: Add readonly sysroot migration unit and script""
2022-08-19 21:46:21 +02:00
Timothée Ravier
1515900d35 common: Move bootupd to arch specific package list
We only have bootup for x86 & aarch64.

Fixes: d34e2ee common: add bootupd
2022-08-19 15:28:18 +02:00
Timothée Ravier
5bbc140133 Revert "Revert "common: Add readonly sysroot migration unit and script""
Updated to fix indentation/syntax issue

This reverts commit 30f2880cfc.
2022-08-19 11:35:46 +02:00
Kevin Fenzi
30f2880cfc Revert "common: Add readonly sysroot migration unit and script"
This reverts commit b87ec3ccd0.
2022-08-16 08:33:17 -07:00
Jonathan Lebon
d34e2ee500 common: add bootupd
We need to make it easier to update the bootloader on these variants
because unlike on traditional systems, it's not updated automatically
with the rest of the system. Add bootupd for that.

This would allow fixing issues like:
- https://github.com/coreos/rpm-ostree/issues/3715
- https://github.com/fedora-silverblue/issue-tracker/issues/120#issuecomment-979268679

It won't be enabled by default and as mentioned in that comment requires
work in Anaconda to be seamless. But at least with this users should be
able to adopt and update:

https://github.com/coreos/bootupd/blob/main/README-design.md

See also the tracker issue where we did this for Fedora CoreOS:

https://github.com/coreos/fedora-coreos-tracker/issues/510
2022-08-11 17:32:38 -04:00
b1d4141d14 Rawhide is now f38
Signed-off-by: Tomas Hrcka <thrcka@redhat.com>
2022-08-09 14:16:14 +02:00
Timothée Ravier
b87ec3ccd0 common: Add readonly sysroot migration unit and script
Add unit and corresponding script to migrate existing systems to read
only sysroot.

See: https://fedoraproject.org/wiki/Changes/Silverblue_Kinoite_readonly_sysroot
RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=2060976
2022-08-08 17:40:01 +02:00
Timothée Ravier
1628cb19bf fedora-common-ostree: Add ncurses
Provides terminal tools like clear, reset, tput, and tset

Fixes: https://github.com/fedora-silverblue/issue-tracker/issues/253
2022-04-20 13:29:38 +02:00
Allison Karlitskaya
88f5c3b25c Revert "Add minimal -devel packages as needed to build kernel modules"
This reverts commit 31ad6acced.

With the addition of the fedora-updates-archive repository to fedora-repos, our
concern about not being able to find the correct -devel packages to install
have disappeared.  Additionally, the kernel now ships -matched versions
of its packages (to allow matching headers to the main kernel package)
and akmods depends on the matched package, which means that we are sure
to get the package we need.

See also: https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1195
See also: https://src.fedoraproject.org/rpms/akmods/pull-request/3
2022-02-16 17:40:15 +00:00
ecbfb4339c Rawhide is now f37
Signed-off-by: Tomas Hrcka <thrcka@redhat.com>
2022-02-08 14:02:58 +01:00
Timothée Ravier
eb48de275c fedora-common-ostree: Move post script inline
This was difficult with the JSON based manifests but is now easy with
the YAML ones.
2022-01-21 11:32:12 +01:00
Timothée Ravier
167a5f0097 fedora-common-ostree: Minor cosmetic fix 2021-11-15 20:12:06 +01:00
Timothée Ravier
d82eefe7c3 Revert "Use sqlite instead of bdb for rpmdb"
This is now the default for rpm-ostree in F34+.

This reverts commit a2743ec5de.
2021-08-19 20:09:48 +02:00
2852268aab Rawhide is now f36
Signed-off-by: Tomas Hrcka <thrcka@redhat.com>
2021-08-10 14:23:18 +02:00
Kalev Lember
ff60c0a260 Explicitly include grub2-pc instead of grub2
This makes the listing more explicit but shouldn't change the package
set as grub2-pc provides grub2.
2021-05-17 11:24:17 +02:00
Kalev Lember
c6aa31404a Include shim and grub2 packages for 32-bit EFI firmware
https://pagure.io/workstation-ostree-config/issue/217
2021-05-17 10:58:58 +02:00
Timothée Ravier
e414f58612 Switch to per variant fedora-release-* package
Move the fedora-release-* package requirement to each variant treefile
to enable per variant specifc release package. Silverblue keeps its
existing release package and Kinoite gets its own for Fedora 35:
https://fedoraproject.org/wiki/Changes/Fedora_Kinoite

For now, all other unofficial variants will use the Fedora generic
release package (or the corresponding Spin release package) with the
ostree counting and desktop sub packages to enable those features by
default.
2021-05-10 18:16:15 +02:00
Kalev Lember
d57d538e39 fedora-common-ostree: Drop flatpak-builder
People who do local flatpak builds can use flatpak-builder from toolbox,
or just use flathub gnome-builder that bundles flatpak-builder.
2021-03-29 17:19:54 +02:00
Timothée Ravier
a2743ec5de
Use sqlite instead of bdb for rpmdb 2021-02-19 11:13:41 +01:00
29db52d114 Setup for rawhide being F35
Signed-off-by: Tomas Hrcka <thrcka@redhat.com>
2021-02-09 14:48:30 +01:00
Timothée Ravier
110d9296dc
Make sure all openh264 packages are always excluded
According to https://fedoraproject.org/wiki/OpenH264, we can not ship
this in Silverblue.
2021-02-03 20:26:37 +01:00
Timothée Ravier
2dee7622f1
fedora-common-ostree: Switch to modules for boot-location
Fixes the following warning:
warning: boot-location: "new" is deprecated, use boot-location: modules

From the rpm-ostree docs (https://coreos.github.io/rpm-ostree/treefile/):

  - “new”: A misnomer, this value is no longer “new”. Kernel data goes
    in /usr/lib/ostree-boot in addition to /usr/lib/modules. This is the
    default; use it if you have a need to care about upgrading from very
    old versions of libostree.

  - “modules”: Kernel data goes just in /usr/lib/modules. Use this for
    new systems, and systems that don’t need to be upgraded from very
    old libostree versions.
2021-01-04 12:16:04 +01:00
Dusty Mabe
5ee6bcec86
fedora-common-ostree: add archive repo to Silverblue
This is the culmination of a lot of work to make package layering
more reliable. This archive repo provides all packages that have
ever been in the updates repository, which means there should always
be a solution that will depsolve given the existing set of base layer
packages.

Pairing this along with https://github.com/coreos/rpm-ostree/pull/2125
means that we should finally see less of the split base layer vs update
repo problem and see less `Forbidden base package replacements` errors.

For context see https://github.com/coreos/fedora-coreos-tracker/issues/400
2020-11-30 11:33:13 -05:00
Adam Williamson
6cda332fc8 thermald is x86_64 only
As with mcelog and microcode_ctl, add it to the blocklist and
list it manually in packages-x86_64 in fedora-common-ostree.yaml
instead. This should fix non-x86_64 arches which are failing
because they can't find it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-09-17 16:14:52 -07:00
f6f2ce56ba Setup for rawhide being F34
Signed-off-by: Tomas Hrcka <thrcka@redhat.com>
2020-08-10 16:32:33 +02:00
Kalev Lember
c18ef957d1 Use fedora-release-silverblue instead of -workstation
This gets us proper branding.
2020-03-04 10:32:44 +01:00
Kalev Lember
8fbb33e126 Exclude PackageKit
Now that rpm-ostree supports exclude-packages in treefile, we can
finally exclude PackageKit (it's Recommended by gnome-software, but
nothing hard-requires it).
2020-02-12 19:25:35 +00:00
Kalev Lember
d7e2f2b38d Move xorg-x11-drv-armada to armhfp-only packages 2020-02-12 18:06:06 +01:00
Mohan Boddu
5d8df8b4b5 Setup for rawhide being F33
Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
2020-02-11 09:42:21 -05:00
e7f257df8c Changes for Rawhide being F32
Signed-off-by: Tomas Hrcka <thrcka@redhat.com>
2019-08-12 17:05:55 +02:00
dftxbs3e
338ba16626 Blacklist x86_64 specific packages and make them arch specific
Signed-off-by: dftxbs3e <dftxbs3e@free.fr>
2019-05-07 20:39:27 +02:00
Timothée Ravier
ebf129e4f8 Add some minor comments 2019-04-07 13:41:24 +02:00
Timothée Ravier
b461398aef Move packages needed for all variants to common manifest 2019-04-07 13:41:06 +02:00
Timothée Ravier
7c611d9d0d Convert all remaining json manifests to yaml
This conversion can be validated using this script:

 #!/bin/bash

mkdir -p repo && cd repo && ostree init --repo . --mode=archive && cd ..
variants=('silverblue' 'kinoite' 'xfce' 'lxqt')

for v in ${variants[@]}; do
    sudo rpm-ostree compose tree --repo=repo --print-only fedora-$v.yaml > $v.yaml.out
done

git checkout --quiet HEAD~
for v in ${variants[@]}; do
    sudo rpm-ostree compose tree --repo=repo --print-only fedora-$v.yaml > $v.json.out
done

for v in ${variants[@]}; do
    if [[ ! -z $(diff $v.json.out $v.yaml.out) ]]; then
        echo ""
        echo "$v: JSON != YAML"
        diff $v.json.out $v.yaml.out
        echo ""
        has_diff="true"
    fi
done

git checkout --quiet master
rm -rf ./repo
for v in ${variants[@]}; do
    rm ./$v.json.out ./$v.yaml.out
done

if [[ $has_diff == "true" ]]; then
    echo "Found some diff!"
else
    echo "OK!"
fi
2019-04-07 13:41:06 +02:00