LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File xdm-liveinstall.patch of Package kiwi-config-openSUSE (Project openSUSE:Factory:Live)

--- usr/lib/YaST2/startup/YaST2.call.orig       2011-02-17 14:54:48.000000000 +0000
+++ usr/lib/YaST2/startup/YaST2.call    2011-04-08 08:01:31.000000000 +0000
@@ -646,7 +646,9 @@
 # 8) Call YaST2
 #---------------------------------------------
 Y2_MODULE_NAME=${1:-installation}; shift
+if test "$Y2_MODULE_NAME" != "live-installer"; then
 Y2_MODULE_ARGS=\(\"$*\"\)
+fi
 start_yast
 
 #=============================================

--- usr/lib/X11/display-manager.orig	2012-09-19 14:09:30.000000000 +0000
+++ usr/lib/X11/display-manager	2012-09-19 14:10:05.000000000 +0000
@@ -182,7 +182,13 @@
                 rc_exit
             fi
 	fi
-	startproc -p $PIDFILE $DISPLAYMANAGER $XDMOPTIONS || rc_failed
+        if cat /proc/cmdline | grep -q liveinstall; then
+            [ -x /usr/bin/plymouth ] && /usr/bin/plymouth quit
+            /usr/lib/YaST2/startup/YaST2.call live-installer
+        else
+           startproc -p $PIDFILE $DISPLAYMANAGER $XDMOPTIONS || rc_failed
+        fi
+
 	# After a crash or a kill signal we may have
 	# a wrong ownership of /dev/xconsole
 	if rc_status ; then