LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File config.sh of Package leap42.3 (Project home:jloehel:vagrant:images)

#!/bin/bash
#======================================
# Functions...
#--------------------------------------
test -f /.kconfig && . /.kconfig
test -f /.profile && . /.profile

#======================================
# Greeting...
#--------------------------------------
echo "Configure image: [$kiwi_iname]..."

#======================================
# Mount system filesystems
#--------------------------------------
baseMount

#======================================
# Setup baseproduct link
#--------------------------------------
suseSetupProduct

#======================================
# Add missing gpg keys to rpm
#--------------------------------------
suseImportBuildKey

#======================================
# Activate services
#--------------------------------------
suseInsertService sshd

#======================================
# Setup default target, multi-user
#--------------------------------------
baseSetRunlevel 3

#======================================
# SuSEconfig
#--------------------------------------
suseConfig

#======================================
# Write build date
#--------------------------------------
date > /etc/vagrant_box_build_time

#======================================
# Vagrant
#--------------------------------------
# set vagrant sudo
printf "%b" "
# added by veewee/postinstall.sh
vagrant ALL=(ALL) NOPASSWD: ALL
" >> /etc/sudoers

# speed-up remote logins
printf "%b" "
# added by veewee/postinstall.sh
UseDNS no
" >> /etc/ssh/sshd_config

#======================================
# Disable multi kernel
#--------------------------------------
sed -i 's/^multiversion/# multiversion/' /etc/zypp/zypp.conf

#======================================
# Prevent rebuilds
#--------------------------------------
touch /var/lib/zypp/AutoInstalled
touch /var/lib/zypp/LastDistributionFlavor

#======================================
# Umount kernel filesystems
#--------------------------------------
baseCleanMount

exit 0