File config.sh of Package openSUSE-Krypton-docker
#!/bin/bash
test -f /.kconfig && . /.kconfig
test -f /.profile && . /.profile
set -euo pipefail
echo "Configure image: [$kiwi_iname]..."
# Add repos from /add_on_products.xml to the installation
eval $(xsltproc /makezyppercmds.xsl /add_on_products.xml)
# Not needed anymore
rm /makezyppercmds.xsl /changecontrolxml.xsl
# Import KDE repo keys
for i in /usr/lib/rpm/gnupg/keys/*.asc ; do
rpm --import $i || true
done
# Enable password-free sudo access for "linux"
echo 'linux ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
#======================================
# Enable recommends
#--------------------------------------
sed -i 's/.*solver.onlyRequires.*/solver.onlyRequires = false/g' /etc/zypp/zypp.conf
#======================================
# Enable docs intallation
#--------------------------------------
sed -i 's/.*rpm.install.excludedocs.*/rpm.install.excludedocs = no/g' /etc/zypp/zypp.conf
# Remove zypp uuid (bsc#1098535)
rm -f /var/lib/zypp/AnonymousUniqueId
exit 0