Remove nonexistent suseConfig and baseCleanMount functions to fix build errors. OBS-URL: https://build.opensuse.org/request/show/906130 OBS-URL: https://build.opensuse.org/package/show/filesystems:ceph/ceph-image?expand=0&rev=34
57 lines
1.7 KiB
Bash
57 lines
1.7 KiB
Bash
#!/bin/bash
|
|
#================
|
|
# FILE : config.sh
|
|
#----------------
|
|
# PROJECT : OpenSuSE KIWI Image System
|
|
# COPYRIGHT : (c) 2013 SUSE LLC
|
|
# :
|
|
# AUTHOR : Robert Schweikert <rjschwei@suse.com>
|
|
# :
|
|
# BELONGS TO : Operating System images
|
|
# :
|
|
# DESCRIPTION : configuration script for SUSE based
|
|
# : operating systems
|
|
# :
|
|
# :
|
|
# STATUS : BETA
|
|
#----------------
|
|
#======================================
|
|
# Functions...
|
|
#--------------------------------------
|
|
test -f /.kconfig && . /.kconfig
|
|
test -f /.profile && . /.profile
|
|
|
|
#======================================
|
|
# Greeting...
|
|
#--------------------------------------
|
|
echo "Configure image: [$kiwi_iname]..."
|
|
|
|
#======================================
|
|
# Setup baseproduct link
|
|
#--------------------------------------
|
|
suseSetupProduct
|
|
|
|
#======================================
|
|
# Import repositories' keys
|
|
#--------------------------------------
|
|
suseImportBuildKey
|
|
|
|
#======================================
|
|
# Disable recommends
|
|
#--------------------------------------
|
|
sed -i 's/.*installRecommends.*/installRecommends = no/g' /etc/zypp/zypper.conf
|
|
|
|
#======================================
|
|
# Remove locale files
|
|
#--------------------------------------
|
|
(cd /usr/share/locale && find -name '*.mo' | xargs rm)
|
|
|
|
#======================================
|
|
# adjust lvm conf for ceph-colume
|
|
#--------------------------------------
|
|
sed -i 's/udev_sync = 1/udev_sync = 0/g' /etc/lvm/lvm.conf && \
|
|
sed -i 's/udev_rules = 1/udev_rules = 0/g' /etc/lvm/lvm.conf && \
|
|
sed -i 's/obtain_device_list_from_udev = 1/obtain_device_list_from_udev = 0/g' /etc/lvm/lvm.conf
|
|
|
|
exit 0
|