File config.sh of Package Gnome

#!/bin/bash

# Functions...
#--------------------------------------
test -f /.kconfig && . /.kconfig
test -f /.profile && . /.profile

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

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

#======================================
# Setup etherlab user
#--------------------------------------
echo "etherlab ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/50-livecd
/usr/sbin/useradd -m -u 1000 etherlab -c "Live-CD User" -p ""
passwd -d root
passwd -d etherlab
# empty password is ok
pam-config -a --nullok
chown -R etherlab /home/etherlab

#======================================
# Activate services
#--------------------------------------
baseService sshd off
baseService wicked off
baseService NetworkManager on
baseUpdateSysConfig /etc/sysconfig/displaymanager DISPLAYMANAGER_AUTOLOGIN etherlab
baseUpdateSysConfig /etc/sysconfig/displaymanager DISPLAYMANAGER gdm
baseUpdateSysConfig /etc/sysconfig/windowmanager DEFAULT_WM gnome
#======================================
# Setup default target, graphical
#--------------------------------------
baseSetRunlevel 5

update-alternatives --set default-displaymanager /usr/lib/X11/displaymanagers/gdm
openSUSE Build Service is sponsored by