]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Remove end mark from grub configs
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 21 Oct 2013 00:16:06 +0000 (02:16 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 21 Oct 2013 00:16:06 +0000 (02:16 +0200)
This was needed for interaction with grub over serial line which was
removed a few commits back.

novaboot

index 5c21d0c0f1f047af4e2caac0873b199b43a0af64..8030f90d3e78b64a727afa5465401c1ee03dd82e 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -258,8 +258,7 @@ sub generate_grub_config($$$$;$)
     if ($base) { $base = "$base/"; };
     open(my $fg, '>', $filename) or die "$filename: $!";
     print $fg "$preamble\n" if $preamble;
-    my $endmark = ($serial || defined $iprelay) ? ';' : '';
-    print $fg "title $title$endmark\n" if $title;
+    print $fg "title $title\n" if $title;
     #print $fg "root $base\n"; # root doesn't really work for (nd)
     my $first = 1;
     foreach (@$modules_ref) {
@@ -284,9 +283,8 @@ sub generate_grub2_config($$$$;$$)
     if ($base && substr($base,-1,1) ne '/') { $base = "$base/"; };
     open(my $fg, '>', $filename) or die "$filename: $!";
     print $fg "$preamble\n" if $preamble;
-    my $endmark = ($serial || defined $iprelay) ? ';' : '';
     $title ||= 'novaboot';
-    print $fg "menuentry $title$endmark {\n";
+    print $fg "menuentry $title {\n";
     print $fg "$prolog\n" if $prolog;
     my $first = 1;
     foreach (@$modules_ref) {