Skip to content

bootc switch failed #19

Closed
Closed

Description

@HuijingHei

Build bootc, and start FCOS with --bind-ro, run ./bootc switch --no-signature-verification quay.io/fedora/fedora-coreos:next and get error.

# ./bootc status
*  e051d49946dd7685ed1fa52c924506fc997958fd002ab39f9b131d0c45b72bb0.0
    (Non-container origin type)

    Backend: ostree
    Booted: yes

# ./bootc switch --no-signature-verification quay.io/fedora/fedora-coreos:next
layers stored: 0 needed: 51 (693.8 MB)
 1.32 MiB [████████████████████] (0s) Fetched ostree chunk sha256:10b8c17c44e6
error: Invalid ref name fedora:fedora/x86_64/coreos/next

Another question, does bootc switch have the same func with rpm-ostree rebase <container image> ?

Activity

  1. cgwalters commented on Dec 6, 2022

    @cgwalters
    Member

    error: Invalid ref name fedora:fedora/x86_64/coreos/next

    That's...odd. Can you paste the output of rpm-ostree status here too?

    Another question, does bootc switch have the same func with rpm-ostree rebase ?

    Yep, that's exactly the idea! (bootc only supports containers note)

  2. HuijingHei commented on Dec 7, 2022

    @HuijingHei
    ContributorAuthor

    Thanks @cgwalters for the confirm. This is the output:

    [root@cosa-devsh ~]# rpm-ostree status
    State: idle
    AutomaticUpdatesDriver: Zincati
      DriverState: inactive; periodically polling for updates (last checked Wed 2022-12-07 01:52:49 UTC)
    Deployments:
    ● fedora:fedora/x86_64/coreos/next
                      Version: 37.20221127.1.0 (2022-11-28T10:24:58Z)
                       Commit: e051d49946dd7685ed1fa52c924506fc997958fd002ab39f9b131d0c45b72bb0
                 GPGSignature: Valid signature by ACB5EE4E831C74BB7C168D27F55AD3FB5323552A
    
  3. cgwalters commented on Dec 7, 2022

    @cgwalters
    Member

    With our stock containers, you can use
    bootc switch --ostree-remote=fedora quay.io/fedora/fedora-coreos:stable - note --ostree-remote=fedora enables the same GPG verification that we use for "native" ostree fetches.

  4. cgwalters commented on Dec 7, 2022

    @cgwalters
    Member

    OK I'm reproducing this here...looking

  5. cgwalters commented on Dec 7, 2022

    @cgwalters
    Member

    PR in #23 !

  6. HuijingHei commented on Dec 8, 2022

    @HuijingHei
    ContributorAuthor

    Thanks @cgwalters for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions