pre-patched iso is created with entire ostree history

Bug #2046811 reported by Dostoievski Albino Batista
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Dostoievski Albino Batista

Bug Description

Brief Description
-----------------
"patch-iso-debian" script create a iso file with the entire ostree repository history causing the size of the iso increase with the amount of commits made to the ostree repository.

Severity
--------
Minor

Steps to Reproduce
------------------
Execute patch-iso-debian script:
patch-iso-debian -i <input filename.iso> -o <output filename.iso> [ -p ] <patch>

Expected Behavior
------------------
ISO is created only with the latest commit.

Actual Behavior
----------------
ISO is created with ostree's entire commit history.

Reproducibility
---------------
100% Reproducible

System Configuration
--------------------
N/A

Branch/Pull Time/Commit
-----------------------
master

Last Pass
---------
N/A

Timestamp/Logs
--------------
# Mount pre-patched ISO and run ostree log starlingx
#instboot-iso-f6bbfcc2/ostree_repo$ ostree log starlingx
commit 0fbfa5080fa8a96405243ec1813bccd0b647cf929ee50658f39b9a148c991f86
ContentChecksum: 65286fafa78775022b5b6fb407672abf265da3839ff42dc2ea5957b6ba945fb8
Date: 2023-12-15 20:07:09 +0000

commit b4400ad4535c8dbeb2e20878f6d9a28358ce3624cf229134c8f44e9185e129c7
ContentChecksum: fb3adba7b56685b89d1d7868e162398b0f1802d76df4221c6ede98c387d2b586
Date: 2023-12-07 18:55:12 +0000

    Commit-id: starlingx-intel-x86-64-20231207185459

Test Activity
-------------
N/A

Workaround
----------
N/A

Changed in starlingx:
assignee: nobody → Dostoievski Albino Batista (dalbinob)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to root (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/root/+/903888

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to root (master)

Reviewed: https://review.opendev.org/c/starlingx/root/+/903888
Committed: https://opendev.org/starlingx/root/commit/ca1f22108ef69381ae51d83497abb08043405703
Submitter: "Zuul (22348)"
Branch: master

commit ca1f22108ef69381ae51d83497abb08043405703
Author: Dostoievski Batista <email address hidden>
Date: Mon Dec 18 10:52:19 2023 -0300

    Pull only the latest ostree commit to pre-patched ISO

    This commit change the patch-iso-debian script to pull only the latest
    ostree commit from the repository used to create it. This make the iso
    not increase in size exponentially.

    Test plan:
    PASS: Create ISO using the script.
    PASS: Check if ostree_repo/ contains only the latest commit.
    PASS: Install AIO-SX system.

    Closes-Bug: 2046811

    Change-Id: I96ef803e3b93535cdd2b9e077ab94df98164cdfa
    Signed-off-by: Dostoievski Batista <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Low
tags: added: stx.9.0 stx.build stx.update
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.