[info=c8d6a543b7cb6ad2ec4579a47e5dc043]

OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/busybox-image?expand=0&rev=21
This commit is contained in:
Dan Čermák 2023-05-04 13:19:59 +00:00 committed by Git OBS Bridge
parent e1e6f41a7a
commit 4e69077566
3 changed files with 19 additions and 3 deletions

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Apr 25 22:24:05 UTC 2023 - Dirk Mueller <dmueller@suse.com>
- Reduce busybox image size by removing Index.db
Index.db is being created on demand by rpm(1) (as long as it is run as root)
so we don't strictly have to ship it. currently the Index.db has a lot of
empty space within which we could optimize away.
until then removing the file saves 10% of the total compressed size.
- switch versioning to rolling Tumbleweed schema
-------------------------------------------------------------------
Fri Mar 3 07:24:36 UTC 2023 - Dan Čermák <dcermak@suse.com>

View File

@ -18,7 +18,6 @@
maintainer="openSUSE (https://www.opensuse.org/)"
additionaltags="%OS_VERSION_ID_SP%.%RELEASE%,latest">
<labels>
<!-- See https://en.opensuse.org/Building_derived_containers#Labels -->
<suse_label_helper:add_prefix prefix="org.opensuse.bci.busybox">
<label name="org.opencontainers.image.title" value="openSUSE Tumbleweed BCI %OS_VERSION_NO_DASH% Busybox Container Image"/>
<label name="org.opencontainers.image.description" value="Busybox based on the SLE Base Container Image."/>
@ -27,7 +26,7 @@
<label name="org.opencontainers.image.vendor" value="openSUSE Project"/>
<label name="org.opencontainers.image.source" value="%SOURCEURL%"/>
<label name="org.opencontainers.image.url" value="https://www.opensuse.org"/>
<label name="org.opensuse.reference" value="registry.opensuse.org/bci/bci-busybox:%OS_VERSION_ID_SP%.%RELEASE%"/>
<label name="org.opensuse.reference" value="registry.opensuse.org/opensuse/bci/bci-busybox:%OS_VERSION_ID_SP%.%RELEASE%"/>
<label name="org.openbuildservice.disturl" value="%DISTURL%"/>
<label name="com.suse.release-stage" value="released"/>
@ -36,7 +35,7 @@
<subcommand execute="/bin/sh"/>
</containerconfig>
</type>
<version>15.Tumbleweed.0</version>
<version>2023</version>
<packagemanager>zypper</packagemanager>
<rpm-check-signatures>false</rpm-check-signatures>
<rpm-excludedocs>true</rpm-excludedocs>

View File

@ -16,7 +16,11 @@ if command -v rpm > /dev/null; then
suseImportBuildKey
fi
sed -i 's|/bin/bash|/bin/sh|' /etc/passwd
# Will be recreated by the next rpm(1) run as root user
rm -v /usr/lib/sysimage/rpm/Index.db
#=======================================
# Clean up after zypper if it is present