Skip to content

Commit

Permalink
Merge pull request #604 from SUSE/basalt_sizing
Browse files Browse the repository at this point in the history
Merge sizing optimisations from Tumbleweed image
  • Loading branch information
dirkmueller authored Sep 6, 2023
2 parents 9f2c2f4 + 45c6ac9 commit 4355db6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/bci_build/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,7 @@ def generate_disk_size_constraints(size_gb: int) -> str:
"filesystem",
"glibc-locale-base",
"gzip",
"jdupes",
"netcfg",
# FIXME: enable this once it's on OBS
# "lsb-release",
Expand All @@ -1312,6 +1313,16 @@ def generate_disk_size_constraints(size_gb: int) -> str:
],
config_sh_script=r"""echo "Configure image: [$kiwi_iname]..."
# don't have multiple licenses of the same type
jdupes -1 -L -r /usr/share/licenses
#
zypper --non-interactive rm -u jdupes
# Not needed, but neither rpm nor libzypp handle rpmlib(X-CheckUnifiedSystemdir) yet
# which would avoid it being installed by filesystem package
rpm -e compat-usrmerge-tools
# FIXME: stop hardcoding the url, use some external mechanism once available
zypper ar 'https://updates.suse.com/SUSE/Products/ALP-Micro/1.0/$basearch/product/' alp-micro
Expand All @@ -1321,7 +1332,7 @@ def generate_disk_size_constraints(size_gb: int) -> str:
sed -i 's/.*solver.onlyRequires.*/solver.onlyRequires = true/g' /etc/zypp/zypp.conf
#======================================
# Exclude docs intallation
# Exclude docs installation
#--------------------------------------
sed -i 's/.*rpm.install.excludedocs.*/rpm.install.excludedocs = yes/g' /etc/zypp/zypp.conf
Expand Down

0 comments on commit 4355db6

Please sign in to comment.