# Booting a kernel
@opts = ( );
push(@opts, [ 2, $text{'title_kernel'},
- &ui_table_start(undef, undef, 2).
+ &ui_table_start(undef, undef, 2, [ undef, "nowrap" ]).
&ui_table_row($text{'title_kfile'},
&ui_textbox("kernel", $kernel, 50)." ".
&file_chooser_button("kernel", 0)).
$title->{'kernel'} = $in{'kernel'};
$title->{'kernel'} .= " $in{'args'}" if ($in{'args'});
$title->{'initrd'} = $in{'initrd'} if (!$in{'initrd_def'});
- $title->{'module'} = join("\0", split(/\r?\n/, $in{'module'}));
+ if ($in{'module'} =~ /\S/) {
+ $title->{'module'} =
+ join("\0", split(/\r?\n/, $in{'module'}));
+ }
}
elsif ($in{'boot_mode'} == 1) {
$title->{'chainloader'} = $in{'chain_def'} ? '+1'