Skip to content

Fixed creating /LiveOS/.packages.json.gz file in SLE builds#2771

Merged
lslezak merged 3 commits intomasterfrom
live-jq
Oct 1, 2025
Merged

Fixed creating /LiveOS/.packages.json.gz file in SLE builds#2771
lslezak merged 3 commits intomasterfrom
live-jq

Conversation

@lslezak
Copy link
Copy Markdown
Contributor

@lslezak lslezak commented Oct 1, 2025

Problem

Details

  • It turned out that for some reason the SLE build root does not contain the jq package. The package is installed into the target Live ISO, but it is missing in the build root. In openSUSE builds it is present, either it uses some different defaults or some tool depend on that...

Solution

  • Run the jq tool from the installed chroot directory, we install it in the Live ISO so it is guaranteed to be there.
  • Alternatively it should be possible to tweak the OBS project config to add more packages into the build root. But that would require to change the project config in all places (OBS, IBS...). As we install the jq tool into the image anyway then just use it from the image.
  • Additionally fixed deleting repofiles, that fails if there is no disabled repository

Testing

  • Tested manually, both SLE and openSUSE builds contain a correct .packages.json.gz file

@lslezak lslezak merged commit c6ffb18 into master Oct 1, 2025
11 checks passed
@lslezak lslezak deleted the live-jq branch October 1, 2025 11:09
ancorgs added a commit that referenced this pull request Oct 3, 2025
## Problem

#2771 fixed two build
problems at the master branch. But one of those problems (failing if
there is no disabled repo) is present also at the `SLE-16` branch.

## Solution

This backports to the `SLE-16` branch the significant part of the
original pull request.
@lslezak lslezak mentioned this pull request Oct 24, 2025
lslezak added a commit that referenced this pull request Oct 24, 2025
Just backporting to SLE-16:
- #2717
- #2771
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Jan 17, 2026
https://build.opensuse.org/request/show/1327362
by user IGonzalezSosa + dimstar_suse
- Version 19.pre

- Hide the data sharing notification in the Firefox browser
  (bsc#1252961)

- Added new boot option "live.net_config=1" to interactively
  configure network settings (gh#agama-project/agama#2923)

- Version 18

- Fixed creating the /LiveOS/.packages.json.gz file in SLE builds
  (gh#agama-project/agama#2771)

- Dump some Live ISO root image data directly to the ISO image,
  added files:
  /LiveOS/.info - a copy of the /var/log/build/info file from
    the root image
  /LiveOS/.packages.gz - list of installed package (plain text,
    basically a `rpm -qa` dump)
  /LiveOS/.packages.json.gz - list of installed packages (JSON
    format, better suitable for processing by scripts or tools)
  (gh#agama-project/agama#2717)

- live-root: update final EULAs with the June 2024 deliv
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