Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
YaST:SLE-12:SP5
yast2-live-installer
correct_live_install
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File correct_live_install of Package yast2-live-installer
#! /bin/sh # this script is called from the live installer once it is done (including 2nd stage) # So the goal of this script is to fix whatever configs were changed for the live system #====================================== # /etc/sudoers hack to fix #297695 # (Installation Live CD: no need to ask for password of root) #-------------------------------------- if [ -f /etc/sudoers ] ; then sed -i -e "s/ALL ALL=(ALL) NOPASSWD: ALL/ALL ALL=(ALL) ALL/" /etc/sudoers chmod 0440 /etc/sudoers fi # bug 544314, we need to use pam-config to correctly reset the gnome-keyring-pam config (see bug 723339) pam_config_keyring=`rpm -q --scripts gnome-keyring-pam | grep -v " *#" | grep "pam-config *-a" | head -n 1` test -n "$pam_config_keyring" && eval "$pam_config_keyring" # reset pam config pam-config -d --nullok # remove unneeded /license.tar.gz rm /license.tar.gz || true # remove susestudio files #rm -rf /studio || true #rm /bootincluded_archives.filelist || true # remove langset stuff rm /etc/langset.sh || true rm -rf /etc/langset/ || true # remove default live-cd user, only if there are more users live_user="linux" if [ `ls /home | grep -c "^"` != "1" ] && [ -e "/home/${live_user}" ] ; then # bug 391798 sed -i -e 's,DISPLAYMANAGER_AUTOLOGIN="${live_user}",DISPLAYMANAGER_AUTOLOGIN="",' /etc/sysconfig/displaymanager userdel ${live_user} || true rm -rf "/home/${live_user}" || true fi rm -f /var/lib/zypp/AnonymousUniqueId rmdir /livecd || true rmdir /read-only || true rmdir /read-write || true
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