[yast-commit] r62671 - /branches/SuSE-SLE-10-SP4-Branch/bootloader/src/routines/misc.ycp
Author: jreidinger Date: Fri Oct 22 12:10:24 2010 New Revision: 62671 URL: http://svn.opensuse.org/viewcvs/yast?rev=62671&view=rev Log: add detection of HyperV and add parameters for it (FATE#309005) Modified: branches/SuSE-SLE-10-SP4-Branch/bootloader/src/routines/misc.ycp Modified: branches/SuSE-SLE-10-SP4-Branch/bootloader/src/routines/misc.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP4-Branch/bootloader/src/routines/misc.ycp?rev=62671&r1=62670&r2=62671&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP4-Branch/bootloader/src/routines/misc.ycp (original) +++ branches/SuSE-SLE-10-SP4-Branch/bootloader/src/routines/misc.ycp Fri Oct 22 12:10:24 2010 @@ -2010,6 +2010,10 @@ // check if it is HVM guest only if ((!Arch::is_xen()) && (xen == true)) ret = true; + string hyperV = ((map<string, any>)SCR::Execute(.target.bash_output, + "lscpu | grep -c '^Hypervisor vendor:[[:blank:]]*Microsoft$'"))["stdout"]:"0"; + if (hyperV == "1") //TODO convert to int + ret = true; return ret; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jreidinger@svn2.opensuse.org