diff --git a/live/src/agama-installer.changes b/live/src/agama-installer.changes index 93a512c38f..b40e4dbe00 100644 --- a/live/src/agama-installer.changes +++ b/live/src/agama-installer.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Sep 30 14:54:18 UTC 2025 - Ladislav Slezák + +- Fixed creating the /LiveOS/.packages.json.gz file in SLE builds + (gh#agama-project/agama#2771) + ------------------------------------------------------------------- Tue Sep 16 07:21:28 UTC 2025 - Josef Reidinger diff --git a/live/src/config.sh b/live/src/config.sh index 1aac6efedf..d5c71012c7 100644 --- a/live/src/config.sh +++ b/live/src/config.sh @@ -35,7 +35,7 @@ REPO="/etc/zypp/repos.d/agama-${DISTRO}.repo" if [ -f "${REPO}.disabled" ]; then mv "${REPO}.disabled" $REPO fi -rm /etc/zypp/repos.d/*.disabled +rm -f /etc/zypp/repos.d/*.disabled # configure the repositories in the Live system # import the OBS key for the systemsmanagement OBS project diff --git a/live/src/fix_bootconfig b/live/src/fix_bootconfig index 4fe76f192e..74214ef9ec 100644 --- a/live/src/fix_bootconfig +++ b/live/src/fix_bootconfig @@ -82,7 +82,8 @@ if [ -n "\$target_dir" ]; then # array and also for formatting the final JSON output rpm --root "\$mount_dir2" -qa --queryformat \\ '\\{"name":"%{NAME}","version":"%{VERSION}","release":"%{RELEASE}","arch":"%{ARCH}"\\}' \\ - | jq -s 'sort_by(.name|ascii_downcase)' | gzip > "\$target_dir/LiveOS/.packages.json.gz" + | chroot "\$mount_dir2" /usr/bin/jq -s 'sort_by(.name|ascii_downcase)' \\ + | gzip > "\$target_dir/LiveOS/.packages.json.gz" # copy the build info file if present if [ -f "\$mount_dir2"/var/log/build/info ]; then