Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flatcar-postinst: Handle airgapped self-hosted nebraska instances #39

Merged
merged 1 commit into from
Feb 26, 2024

Commits on Feb 22, 2024

  1. flatcar-postinst: Handle airgapped self-hosted nebraska instances

    Right now the stable update from 3602.2.3 -> 3815.2.0 fails for airgapped
    environment with self-hosted nebraska instances that sync packages, because the
    parsing in flatcar-postinst can't handle the names of OEM sysexts in the
    nebraska response. These are called "extrafile-<BOARD>-<VERSION>-oem-<OEM>.gz".
    Fix this by matching against "*oem-<OEM>.gz" and extracting the remote filename
    from the response.
    
    In main this is fixed in #36, but
    that depends on switching to ue-rs.
    
    Here is an example response for testing:
    
    <response protocol="3.0" server="nebraska">
      <daystart elapsed_seconds="0"/>
      <app appid="{e96281a6-d1af-4bde-9a0a-97b76e56dc57}" status="ok">
        <ping status="ok"/>
        <updatecheck status="ok">
          <urls>
            <url codebase="https://nebraska-example.org/flatcar/"/>
          </urls>
          <manifest version="3815.2.0">
            <packages>
              <package name="flatcar-amd64-3815.2.0.gz" hash="JLT5o2wJzffAgHY5GesCWymJHng=" size="458309926" required="true"/>
              <package name="extrafile-amd64-3815.2.0-oem-vmware.gz" hash="llmt48kEE1pZxHbhE86zTczZMmY=" hash_sha256="7c4095f16579402d73ea42a63be63b2c92d98457303a080399d2a5bb33f46f88" size="1536465" required="false"/>
            </packages>
        </updatecheck>
      </app>
    </response>
    
    Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
    jepio committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    4c7f06e View commit details
    Browse the repository at this point in the history