I think this makes the memtest module work on grub1.
But I can't test it because grub-install fails for me for grub1. I tested it works for grub2. svn path=/nixos/trunk/; revision=33739
This commit is contained in:
parent
fb0a54b803
commit
918edf8612
|
@ -19,11 +19,16 @@ in
|
|||
};
|
||||
|
||||
config.boot.loader.grub = mkIf isEnabled {
|
||||
extraEntries =
|
||||
extraEntries = if config.boot.loader.grub.version == 2 then
|
||||
''
|
||||
menuentry "${memtest86.name}" {
|
||||
linux16 $bootRoot/memtest.bin
|
||||
}
|
||||
''
|
||||
else
|
||||
''
|
||||
menuentry "${memtest86.name}"
|
||||
linux16 $bootRoot/memtest.bin
|
||||
'';
|
||||
extraPrepareConfig =
|
||||
''
|
||||
|
|
Loading…
Reference in New Issue