Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:smarty12:images
image-domU-base
config.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File config.sh of Package image-domU-base
#!/bin/bash #================ # FILE : config.sh #---------------- # PROJECT : openSUSE KIWI Image System # COPYRIGHT : (c) 2024 SUSE LLC # : # AUTHOR : Marcus Schaefer <ms@suse.de> # : Dan Čermák <dcermak@suse.com> # : Martijn Goedhart # : # BELONGS TO : Operating System images # : # DESCRIPTION : configuration script for SUSE based # : operating systems # : # : # STATUS : BETA #---------------- set -euo pipefail #====================================== # necessary for running with "set -u" # until kiwi 9.22.3 #====================================== export DEBUG=1 #====================================== # Functions... #-------------------------------------- test -f /.kconfig && . /.kconfig test -f /.profile && . /.profile #====================================== # Greeting... #-------------------------------------- echo "Configure image: [$kiwi_iname]..." #====================================== # Setup baseproduct link #-------------------------------------- suseSetupProduct #====================================== # Add missing gpg keys to rpm #-------------------------------------- suseImportBuildKey #====================================== # Disable recommends #-------------------------------------- sed -i 's/.*solver.onlyRequires.*/solver.onlyRequires = true/g' /etc/zypp/zypp.conf #====================================== # Exclude docs installation #-------------------------------------- sed -i 's/.*rpm.install.excludedocs.*/rpm.install.excludedocs = yes/g' /etc/zypp/zypp.conf #====================================== # Exclude the installation of multiversion kernels #-------------------------------------- sed -i 's/^multiversion/# multiversion/' /etc/zypp/zypp.conf #====================================== # Setup default target, multi-user #-------------------------------------- baseSetRunlevel 3 #========================================== # remove package docs #------------------------------------------ rm -rf /usr/share/doc/packages/* rm -rf /usr/share/doc/manual/* rm -rf /opt/kde* #====================================== # only basic version of vim is # installed; no syntax highlighting # only perform the modification if # /etc/vimrc is actually there #-------------------------------------- if [ -f /etc/vimrc ]; then sed -i -e's/^syntax on/" syntax on/' /etc/vimrc fi # SSH service baseInsertService sshd # Puppet service baseInsertService puppet # setup DHCP on eth0 properly cat << EOF > /etc/sysconfig/network/ifcfg-eth0 STARTMODE=auto BOOTPROTO=dhcp EOF #================================================= # "Disable" purge-kernels so that the process is not # blocking zypper pointlessly during the first boot #================================================= Rm -f /boot/do_purge_kernels #================================================= # configure openSUSE repositories from YaST #------------------------------------------------- # Leap 42.3's os-release is missing " around some of the values # => filter them out since they are present in later releases OS_ID=$(grep '^ID=' /etc/os-release | awk -F'=' '{ print $2 }'| sed 's/"//g') if [ $(expr match "${OS_ID^^}" "OPENSUSE") -gt 7 ]; then add-yast-repos fi 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