Author: jsrain Date: Mon Apr 20 16:12:31 2009 New Revision: 56862 URL: http://svn.opensuse.org/viewcvs/yast?rev=56862&view=rev Log: at start-up, check that /sys, /proc and /dev are not empty and prevent YaST from start if they are (bnc#450643) Modified: trunk/yast2/package/yast2.changes trunk/yast2/scripts/yast2 Modified: trunk/yast2/package/yast2.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/package/yast2.changes?rev=56862&r1=56861&r2=56862&view=diff ============================================================================== --- trunk/yast2/package/yast2.changes (original) +++ trunk/yast2/package/yast2.changes Mon Apr 20 16:12:31 2009 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Mon Apr 20 16:11:35 CEST 2009 - jsrain@suse.cz + +- at start-up, check that /sys, /proc and /dev are not empty and + prevent YaST from start if they are (bnc#450643) + +------------------------------------------------------------------- Thu Apr 9 10:04:19 CEST 2009 - lslezak@suse.cz - PackageSystem.ycp - check nil result of Pkg::PkgCommit() call Modified: trunk/yast2/scripts/yast2 URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/scripts/yast2?rev=56862&r1=56861&r2=56862&view=diff ============================================================================== --- trunk/yast2/scripts/yast2 (original) +++ trunk/yast2/scripts/yast2 Mon Apr 20 16:12:31 2009 @@ -30,6 +30,16 @@ . $YAST_PREFIX/lib/YaST2/bin/yast2-funcs +# check that system directories are non-empty - bnc #450643 +mount_ok=1; +test -z `ls /proc |head -n1` && echo "The /proc filesystem is not mounted." && mount_ok=0; +test -z `ls /sys |head -n1` && echo "The /sys filesystem is not mounted." && mount_ok=0; +test -z `ls /dev |head -n1` && echo "The /dev filesystem is not mounted." && mount_ok=0; +if test $mount_ok -eq 0 ; then + echo "If you are running in a chroot environment, bind-mount missing filesystems."; + exit 1; +fi + # #211392, #265263 # if we are in X and do not have _input_ from terminal, # save the output and display it via xmessage in case of error. -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org