* Handle symlinks such as /dev/disk/by-label/bla. Previously

Grub installation barfed.

svn path=/nixpkgs/trunk/; revision=12877
This commit is contained in:
Eelco Dolstra
2008-09-18 09:43:31 +00:00
parent 74669a825c
commit 35cc272d07
2 changed files with 48 additions and 1 deletions
+11 -1
View File
@@ -17,16 +17,26 @@ stdenv.mkDerivation {
sha256 = "12akcbp1a31pxzsxm01scgir0fqkk8qqqwhs44vzgs2chzzigyvd";
};
patches = [
# Properly handle the case of symlinks such as
# /dev/disk/by-label/bla. The symlink resolution code in
# grub-install isn't smart enough.
./symlink.patch
];
# Autoconf/automake required for the splashimage patch.
buildInputs = [autoconf automake];
preConfigure = ''
prePatch = ''
unpackFile $gentooPatches
rm patch/400_all_grub-0.97-reiser4-20050808-gentoo.patch
for i in patch/*.patch; do
echo "applying patch $i"
patch -p1 < $i || patch -p0 < $i
done
'';
preConfigure = ''
autoreconf
'';
}