3
0
Fork 0
forked from mirrors/nixpkgs

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:
Lluís Batlle i Rossell 2012-04-10 22:20:20 +00:00
parent fb0a54b803
commit 918edf8612

View file

@ -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 =
''