Mailinglist Archive: yast-commit (693 mails)

< Previous Next >
[yast-commit] r55867 - /branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/section_widgets.ycp
  • From: juhliarik@xxxxxxxxxxxxxxxx
  • Date: Tue, 03 Mar 2009 12:01:50 -0000
  • Message-id: <E1LeTJm-000649-FJ@xxxxxxxxxxxxxxxx>
Author: juhliarik
Date: Tue Mar 3 13:01:50 2009
New Revision: 55867

URL: http://svn.opensuse.org/viewcvs/yast?rev=55867&view=rev
Log:
updated init function for initrd

Modified:

branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/section_widgets.ycp

Modified:
branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/section_widgets.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/section_widgets.ycp?rev=55867&r1=55866&r2=55867&view=diff
==============================================================================
---
branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/section_widgets.ycp
(original)
+++
branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/section_widgets.ycp
Tue Mar 3 13:01:50 2009
@@ -109,14 +109,6 @@
* @param widget any id of the widget
*/
void KernelImageInit (string widget) {
- /*
- list<string> available = (list<string>)SCR::Read (.target.dir, "/boot");
- available = filter (string f, available, {
- return substring (f, 0, 13) == "/boot/vmlinuz";
- });
- if (size (available) == 0)
- available = ["/boot/vmlinuz"];
- */
string image = BootCommon::current_section["image"]:"";
list<string> available = [image];
UI::ChangeWidget (`id (widget), `Items, available);
@@ -143,12 +135,8 @@
* @param widget any id of the widget
*/
void InitrdInit (string widget) {
- list<string> available = (list<string>)SCR::Read (.target.dir, "/boot");
- available = filter (string f, available, {
- return substring (f, 0, 12) == "/boot/initrd";
- });
- if (size (available) == 0)
- available = ["/boot/initrd"];
+ string initrd = BootCommon::current_section["initrd"]:"";
+ list<string> available = [initrd];
UI::ChangeWidget (`id (widget), `Items, available);
SectionOptionInit (widget);
}

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages