Making grub display 'All configurations', not 'Old'
That confused some people, as the first generation shown is the 'current'.
This commit is contained in:
parent
7d2ec75ae7
commit
3be4fd3f38
@ -194,7 +194,7 @@ $conf .= "$extraEntries\n" unless $extraEntriesBeforeNixOS;
|
|||||||
$conf =~ s/\@bootRoot\@/$bootRoot/g;
|
$conf =~ s/\@bootRoot\@/$bootRoot/g;
|
||||||
|
|
||||||
# Add entries for all previous generations of the system profile.
|
# Add entries for all previous generations of the system profile.
|
||||||
$conf .= "submenu \"NixOS - Old configurations\" {\n" if $grubVersion == 2;
|
$conf .= "submenu \"NixOS - All configurations\" {\n" if $grubVersion == 2;
|
||||||
|
|
||||||
sub nrFromGen { my ($x) = @_; $x =~ /system-(.*)-link/; return $1; }
|
sub nrFromGen { my ($x) = @_; $x =~ /system-(.*)-link/; return $1; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user