From 808027219daa7d267d6725361ec67b4e90b5760b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 21 Sep 2009 19:06:48 +0000 Subject: [PATCH] * Provide support for the "savedefault --once" command in the Grub shell. KDE uses this to allow rebooting into a non-default entry. To enable, do "nixos-rebuild switch --install-grub". svn path=/nixpkgs/trunk/; revision=17341 --- pkgs/tools/misc/grub/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/tools/misc/grub/default.nix b/pkgs/tools/misc/grub/default.nix index 8d8525bccd92..13bdaf0339ac 100644 --- a/pkgs/tools/misc/grub/default.nix +++ b/pkgs/tools/misc/grub/default.nix @@ -22,6 +22,15 @@ stdenv.mkDerivation { # /dev/disk/by-label/bla. The symlink resolution code in # grub-install isn't smart enough. ./symlink.patch + + # Provide support for the "savedefault --once" command in the Grub + # shell. KDE uses this to allow rebooting into a non-default + # entry. + (fetchurl { + url = http://cvs.mandriva.com/cgi-bin/viewvc.cgi/SPECS/grub/grub-0.97-once.patch?revision=1.3; + sha256 = "1g5qfn8lvl32h4pggdf7dmjqjpi42jblknzakb5h909fi5i1qyw8"; + }) + ] ++ (stdenv.lib.optional buggyBiosCDSupport ./buggybios.patch); # Autoconf/automake required for the splashimage patch.