Giter Club home page Giter Club logo

Comments (3)

aorith avatar aorith commented on July 17, 2024 1

For the rpm-ostree status we have to set the label org.opencontainers.image.version:

$ rpm-ostree status
State: idle
AutomaticUpdates: stage; rpm-ostreed-automatic.timer: no runs since boot
Deployments:
● ostree-unverified-registry:ghcr.io/aorith/blueconfig:stable
                   Digest: sha256:cef0856b5a62fc25dabd1a9431cd9527c45f99a5f6254ee074de6450d654c3a1
                  Version: 37.20230318.17 (2023-03-18T17:58:01Z)
          LayeredPackages: langpacks-en

For the grub entries, I think it's generated with /etc/grub.d/15_ostree, that script seems to parse the bootloader entries (/boot/loader/entries/) and those entries seem to be generated by ostree.

Everything points towards the PRETTY_NAME present in /usr/lib/os-release, but I must be missing something because changing that variable doesn't modify the bootloader entries an hence grub entries :(

https://github.com/ostreedev/ostree/blob/d49632faa6cbcda7b2891d5aab9f5a9a68348160/src/libostree/ostree-sysroot-deploy.c#L2022-L2023

from main.

castrojo avatar castrojo commented on July 17, 2024

Good idea, I'll investigate this.

from main.

aorith avatar aorith commented on July 17, 2024

Seems to be working now:

[root@trantor ~]# grep Blueconfig /boot/loader/grub.cfg 
menuentry 'Fedora Linux 37.20230319.08 (Blueconfig) (ostree:0)' --class gnu-linux --class gnu --class os --unrestricted 'ostree-0-1aea2add-32c3-490f-a467-e00166635fa6' {
menuentry 'Fedora Linux 37.20230318.17 (Blueconfig) (ostree:1)' --class gnu-linux --class gnu --class os --unrestricted 'ostree-1-1aea2add-32c3-490f-a467-e00166635fa6' {
[root@trantor ~]# grep Blueconfig /boot/loader/entries/*
/boot/loader/entries/ostree-1-fedora.conf:title Fedora Linux 37.20230318.17 (Blueconfig) (ostree:1)
/boot/loader/entries/ostree-2-fedora.conf:title Fedora Linux 37.20230319.08 (Blueconfig) (ostree:0)

I moved the change to the PRETTY_NAME before the rpm-ostree ex rebuild command (https://coreos.github.io/rpm-ostree/ex-rebuild/), that might have solved it or maybe a new minor version of the Linux kernel was in the base of the Silverblue image, triggering the rebuild of the menu...

It does work after a clean rebase too but I'm not sure if it will work between rpm-ostree upgrade's when the update doesn't include a new kernel or something that triggers the rebuild of the grub menu.

from main.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.