Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.6:Update
sles15-image.32353
config.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File config.sh of Package sles15-image.32353
#!/bin/bash test -f /.kconfig && . /.kconfig test -f /.profile && . /.profile set -euxo pipefail echo "Configure image: [$kiwi_iname]..." #====================================== # Setup baseproduct link #-------------------------------------- suseSetupProduct #====================================== # Import repositories' keys #-------------------------------------- suseImportBuildKey #====================================== # Disable recommends #-------------------------------------- sed -i 's/.*solver.onlyRequires.*/solver.onlyRequires = true/g' /etc/zypp/zypp.conf #====================================== # Exclude docs intallation #-------------------------------------- sed -i 's/.*rpm.install.excludedocs.*/# rpm.install.excludedocs = yes/g' /etc/zypp/zypp.conf #====================================== # Configure SLE BCI repositories #-------------------------------------- zypper -n ar --refresh --gpgcheck --priority 100 --enable 'https://updates.suse.com/SUSE/Products/SLE-BCI/$releasever_major-SP$releasever_minor/$basearch/product/' SLE_BCI zypper -n ar --refresh --gpgcheck --priority 100 --disable 'https://updates.suse.com/SUSE/Products/SLE-BCI/$releasever_major-SP$releasever_minor/$basearch/product_debug/' SLE_BCI_debug zypper -n ar --refresh --gpgcheck --priority 100 --disable 'https://updates.suse.com/SUSE/Products/SLE-BCI/$releasever_major-SP$releasever_minor/$basearch/product_source/' SLE_BCI_source #====================================== # Remove zypp uuid (bsc#1098535) #-------------------------------------- rm -f /var/lib/zypp/AnonymousUniqueId #========================================== # Clean up log files #------------------------------------------ # Remove various log files. While it's possible to just rm -rf /var/log/*, that # would also remove some package owned directories (not %ghost) and some files # are actually wanted, like lastlog in the !docker case. # For those wondering about YaST2 here: Kiwi writes /etc/hosts, so the version # from the netcfg package ends up as /etc/hosts.rpmnew, which zypper writes a # letter about to /var/log/YaST2/config_diff_2022_03_06.log. Kiwi fixes this, # but the log file remains. rm -rf /var/log/{zypper.log,zypp/history,YaST2} # Remove the entire zypper cache content (not the dir itself, owned by libzypp) rm -rf /var/cache/zypp/* #========================================== # Hack! The go container management tools can't handle sparse files: # https://github.com/golang/go/issues/13548 # If lastlog doesn't exist, useradd doesn't attempt to reserve space, # also in derived containers. #------------------------------------------ rm -f /var/log/lastlog #====================================== # Remove locale files #-------------------------------------- find /usr/share/locale -name '*.mo' -delete exit 0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor