Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
kiwi-config-openSUSE
correct_live_install
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File correct_live_install of Package kiwi-config-openSUSE
#! /bin/sh # this script is called from the live installer once it finished copying the live # image. So the goal of this script is to fix whatever configs were changed for the # live system is_usb=0 if test "$1" = usb; then is_usb=1 fi chkconfig sshd on chkconfig cron on if test "$is_usb" = 0; then chkconfig sax off fi chkconfig boot.langset off #====================================== # /etc/sudoers hack to fix #297695 # (Installation Live CD: no need to ask for password of root) #-------------------------------------- sed -i -e "s/ALL ALL=(ALL) NOPASSWD: ALL/ALL ALL=(ALL) ALL/" /etc/sudoers chmod 0440 /etc/sudoers # remove live-cd user userdel linux # reset pam config pam-config -d --nullok if test "$is_usb" = 0; then # remove unneeded /license.tar.gz rm /license.tar.gz fi # remove langset stuff rm /etc/langset.pl rm -rf /etc/langset/ grep -v ^perl /etc/init.d/boot.local > /etc/init.d/boot.local.1 && mv /etc/init.d/boot.local.1 /etc/init.d/boot.local chmod 0755 /etc/init.d/boot.local rm /etc/init.d/boot.langset cd / # patch -R -p0 < /etc/YaST2/policy.patch rm /etc/YaST2/policy.patch if test "$is_usb" = 0; then rm /etc/init.d/sax rm /usr/sbin/configure-x.sh cd /etc/zypp/repos.d for i in *.repo; do sed -i -e "s,enabled=0,enabled=1," $i done else patch -p0 < /tmp/config-usb.patch rm /tmp/config-usb.patch fi # bug 391798 sed -i -e 's,DISPLAYMANAGER_AUTOLOGIN="linux",DISPLAYMANAGER_AUTOLOGIN="",' /etc/sysconfig/displaymanager if test "$is_usb" = 0; then # not good enough for usb # there we need something dynamic in firstboot /bin/cat /proc/sys/kernel/random/uuid > /etc/smolt/uuid fi rm -f /var/lib/zypp/AnonymousUniqueId
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