Skip to content

fix(ubuntu-universe): fix two ARM64 bugs in ports repo state#221

Closed
jonathanlooi wants to merge 1 commit intoteamdfir:masterfrom
jonathanlooi:fix/arm64-ubuntu-universe
Closed

fix(ubuntu-universe): fix two ARM64 bugs in ports repo state#221
jonathanlooi wants to merge 1 commit intoteamdfir:masterfrom
jonathanlooi:fix/arm64-ubuntu-universe

Conversation

@jonathanlooi
Copy link
Copy Markdown

Problems

Bug 1 — hardcoded Suites: noble
The ubuntu-ports repository entry was hardcoded to noble, meaning the
state only works on Ubuntu 24.04. On Ubuntu 22.04 (Jammy), universe packages
couldn't be resolved, causing multiple SIFT tools to fail to install.

Bug 2 — YAML rendering failure in unless clause
The list form of unless with a grep command containing URIs: http://...
causes Salt's YAML renderer to misparse the colon-space as a mapping key,
producing a CRITICAL rendering error that skips the entire state:
[CRITICAL] Rendering SLS 'base:sift.repos.ubuntu-universe' failed: could not find
expected ':'

Fixes

  • Replace Suites: noble with the lsb_distrib_codename grain so the correct suite
    names are used for any supported Ubuntu release
  • Flatten the unless list into a scalar with a simplified grep pattern, avoiding
    the YAML parsing conflict

Tested on

  • Ubuntu 22.04 LTS ARM64 running in UTM on Apple Silicon (M-series Mac)

@ekristen
Copy link
Copy Markdown
Contributor

This was addressed in another PR. Appreciate you opening this up though.

@ekristen ekristen closed this Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants