View | Details | Raw Unified | Return to bug 195049
Collapse All | Expand All

(-)yast2/library/system/src/Kernel.ycp (-39 / +1 lines)
Lines 406-453 global void SetCmdLine (string new_cmd_l Link Here
406
	{
406
	{
407
	    binary = "vmlinux";
407
	    binary = "vmlinux";
408
408
409
	    if (Arch::board_mac_new () || Arch::board_mac_old ())
409
	    if (Arch::board_iseries ())
410
	    {
411
	        if (Arch::board_compatible () == "MacRISC4")
412
		{
413
		    // G5 and newer
414
		    kernel_packages = ["kernel-ppc64"];
415
		}
416
		else
417
		{
418
		    // MacRISC, MacRISC2, MacRISC3
419
		    kernel_packages = ["kernel-default"];
420
		}
421
	    }
422
	    else if (Arch::board_chrp ())
423
	    {
424
		string chrp_cpu = "";
425
		list<map> cpuProbe = (list<map>) SCR::Read(.probe.cpu);
426
		foreach (map cpuProbe_map, cpuProbe, {
427
		    chrp_cpu = cpuProbe_map["model"]:"";
428
		    chrp_cpu = tolower (chrp_cpu);
429
		});
430
431
		//   booting a 32bit kernel on POWER3
432
		if ((issubstring (chrp_cpu, "power3") && Arch::ppc32 ())
433
		    || Arch::ppc64 ())
434
		{
435
		    kernel_packages = ["kernel-ppc64"];
436
		}
437
		else
438
		{
439
		    kernel_packages = ["kernel-default"];
440
		}
441
	    }
442
	    else if (Arch::board_iseries ())
443
	    {
410
	    {
444
		kernel_packages = ["kernel-iseries64"];
411
		kernel_packages = ["kernel-iseries64"];
445
	    }
412
	    }
446
	    else if (Arch::board_prep ())
447
	    {
448
		kernel_packages = ["kernel-default"];
449
	    }
450
	    // if hwinfo could not match the board type, use the cpu type.
451
	    else if (Arch::ppc32 ())
413
	    else if (Arch::ppc32 ())
452
	    {
414
	    {
453
		kernel_packages = ["kernel-default"];
415
		kernel_packages = ["kernel-default"];

Return to bug 195049