Search
j0ke.net Open Build Service
>
Projects
>
stresslinux
:
12.3
>
mini-image-iso
> config.sh
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File config.sh of Package mini-image-iso
#!/bin/bash #================ # FILE : config.sh #---------------- # PROJECT : OpenSuSE KIWI Image System # COPYRIGHT : (c) 2006 SUSE LINUX Products GmbH. All rights reserved # : # AUTHOR : Marcus Schaefer <ms@suse.de> # : # 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: [$name]..." suseSetupProduct #====================================== # SuSEconfig #-------------------------------------- echo "** Running suseConfig..." suseConfig echo "** Running ldconfig..." /sbin/ldconfig echo "** Running baseSetRunlevel..." baseSetRunlevel 3 #====================================== # RPM GPG Keys Configuration #-------------------------------------- #echo '** Importing GPG Keys...' #rpm --import /studio/studio_rpm_key_0 #rm /studio/studio_rpm_key_0 #rpm --import /studio/studio_rpm_key_1 #rm /studio/studio_rpm_key_1 #rpm --import /studio/studio_rpm_key_2 #rm /studio/studio_rpm_key_2 echo "** Running sed..." sed --in-place -e 's/# solver.onlyRequires.*/solver.onlyRequires = true/' /etc/zypp/zypp.conf # Enable sshd echo "** Enable service sshd..." chkconfig sshd on # enable rpcbind echo "** Enable service rpcbind..." chkconfig rpcbind on #chkconfig splash off #chkconfig splash_early off if [ -f /build-custom ] ; then echo "** Found /build-custom, setting permissions..." chown root:root /build-custom chmod 755 /build-custom # run custom build_script after build echo "** Running /build-custom..." /build-custom fi # cleanup #baseStripinfos #baseStripLocales en_US #baseStripMans # #test -d /studio || mkdir /studio #cp /image/.profile /studio/profile #cp /image/config.xml /studio/config.xml #rm -rf /studio/overlay-tmp #true #baseCleanMount