mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 06:22:43 +00:00
add patch for initramfs support
This commit is contained in:
parent
3fa144d895
commit
ce2cd08a17
2 changed files with 20 additions and 2 deletions
13
grub-1.97.1-initramfs.patch
Normal file
13
grub-1.97.1-initramfs.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff -uNr grub-1.97.1-orig/util/grub.d/10_linux.in grub-1.97.1/util/grub.d/10_linux.in
|
||||
--- grub-1.97.1-orig/util/grub.d/10_linux.in 2009-11-09 09:48:16.000000000 -0600
|
||||
+++ grub-1.97.1/util/grub.d/10_linux.in 2009-12-01 15:28:16.000000000 -0600
|
||||
@@ -78,7 +78,8 @@
|
||||
initrd=
|
||||
for i in "initrd.img-${version}" "initrd-${version}.img" \
|
||||
"initrd-${version}" "initrd.img-${alt_version}" \
|
||||
- "initrd-${alt_version}.img" "initrd-${alt_version}"; do
|
||||
+ "initrd-${alt_version}.img" "initrd-${alt_version}" \
|
||||
+ "initramfs-${version}.img" ; do
|
||||
if test -e "${dirname}/${i}" ; then
|
||||
initrd="$i"
|
||||
break
|
|
@ -14,7 +14,7 @@
|
|||
Name: grub2
|
||||
Epoch: 1
|
||||
Version: 1.97.1
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: Bootloader with support for Linux, Multiboot and more
|
||||
|
||||
Group: System Environment/Base
|
||||
|
@ -25,7 +25,8 @@ Source1: 90_persistent
|
|||
Source2: grub.default
|
||||
Source3: README.Fedora
|
||||
Patch0: grub-1.95-grubdir.patch
|
||||
Patch1: http://fedorapeople.org/~lkundrak/grub2/grub2-dlsym-v4.patch
|
||||
Patch1: http://fedorapeople.org/~lkundrak/grub2/grub2-dlsym-v4.patch
|
||||
Patch2: grub-1.97.1-initramfs.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
|
@ -64,6 +65,7 @@ file that is part of this package's documentation for more information.
|
|||
|
||||
%patch0 -p1 -b .grubdir
|
||||
%patch1 -p1 -b .dlsym
|
||||
%patch2 -p1 -b .initramfs
|
||||
|
||||
# README.Fedora
|
||||
cp %{SOURCE3} .
|
||||
|
@ -202,6 +204,9 @@ exec >/dev/null 2>&1
|
|||
|
||||
|
||||
%changelog
|
||||
* Tue Dec 01 2009 Dennis Gilmore <dennis@ausil.us> - 1:1.97.1-4
|
||||
- add patch so that grub2 finds fedora's initramfs
|
||||
|
||||
* Tue Nov 10 2009 Dennis Gilmore <dennis@ausil.us> - 1:1.97.1-3
|
||||
- no mkrescue on sparc arches
|
||||
- ofpathname on sparc arches
|
||||
|
|
Loading…
Reference in a new issue