rpms/grub/devel grub-fedora-8.patch, NONE, 1.1 grub-0.90-append.patch, 1.2, NONE grub-0.90-install.in.patch, 1.1, NONE grub-0.90-symlinkmenulst.patch, 1.2, NONE grub-0.91-splashimagehelp.patch, 1.1, NONE grub-0.93-configfile.patch, 1.1, NONE grub-0.93-endedit.patch, 1.1, NONE grub-0.93-graphics-bootterm.patch, 1.1, NONE grub-0.93-once.patch, 1.1, NONE grub-0.93-special-device-names.patch, 1.2, NONE grub-0.94-addsyncs.patch, 1.1, NONE grub-0.94-i2o.patch, 1.2, NONE grub-0.94-initrdmax.patch, 1.1, NONE grub-0.94-installcopyonly.patch, 1.1, NONE grub-0.95-ext2-sparse.patch, 1.1, NONE grub-0.95-gcc4.patch, 1.1, NONE grub-0.95-geometry-26kernel.patch, 1.1, NONE grub-0.95-graphics.patch, 1.1, NONE grub-0.95-hiddenmenu-tweak.patch, 1.2, NONE grub-0.95-md-mbr.patch, 1.3, NONE grub-0.95-md-rework.patch, 1.1, NONE grub-0.95-md.patch, 1.1, NONE grub-0.95-mdadm-path.patch, 1.1, NONE grub-0.95-moreraid.patch, 1.1, NONE grub-0.95-nonmbr.patch, 1.1, NONE grub-0.95-nxstack.patch, 1.1, NONE grub-0.95-odirect.patch, 1.1, NONE grub-0.95-prototypes.patch, 1.1, NONE grub-0.95-recheck-bad.patch, 1.2, NONE grub-0.95-splash-error-term.patch, 1.1, NONE grub-0.95-staticcurses.patch, 1.2, NONE grub-0.95-xpmjunk.patch, 1.1, NONE grub-0.96-gpt_partition_support.patch, 1.1, NONE grub-0.97-datadir.patch, 1.2, NONE grub-0.97-dmraid-partition-names.patch, 1.1, NONE grub-0.97-dmraid-recheck-bad.patch, 1.1, NONE grub-0.97-dmraid.patch, 1.1, NONE grub-0.97-gcc4.patch, 1.1, NONE grub-0.97-install.in.patch, 1.1, NONE grub-0.97-mactel-kbd.patch, 1.3, NONE grub-0.97-mdadm-path.patch, 1.2, NONE grub-0.97-mpath.patch, 1.1, NONE grub-0.97-nx-multiinstall.patch, 1.1, NONE grub-0.97-nxstack.patch, 1.1, NONE grub-0.97-once.patch, 1.4, NONE grub-0.97-prototypes.patch, 1.1, NONE grub-0.97-stderr.patch, 1.1, NONE
Peter Jones (pjones)
fedora-extras-commits at redhat.com
Tue Aug 7 15:19:27 UTC 2007
Author: pjones
Update of /cvs/extras/rpms/grub/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26452
Added Files:
grub-fedora-8.patch
Removed Files:
grub-0.90-append.patch grub-0.90-install.in.patch
grub-0.90-symlinkmenulst.patch grub-0.91-splashimagehelp.patch
grub-0.93-configfile.patch grub-0.93-endedit.patch
grub-0.93-graphics-bootterm.patch grub-0.93-once.patch
grub-0.93-special-device-names.patch grub-0.94-addsyncs.patch
grub-0.94-i2o.patch grub-0.94-initrdmax.patch
grub-0.94-installcopyonly.patch grub-0.95-ext2-sparse.patch
grub-0.95-gcc4.patch grub-0.95-geometry-26kernel.patch
grub-0.95-graphics.patch grub-0.95-hiddenmenu-tweak.patch
grub-0.95-md-mbr.patch grub-0.95-md-rework.patch
grub-0.95-md.patch grub-0.95-mdadm-path.patch
grub-0.95-moreraid.patch grub-0.95-nonmbr.patch
grub-0.95-nxstack.patch grub-0.95-odirect.patch
grub-0.95-prototypes.patch grub-0.95-recheck-bad.patch
grub-0.95-splash-error-term.patch grub-0.95-staticcurses.patch
grub-0.95-xpmjunk.patch grub-0.96-gpt_partition_support.patch
grub-0.97-datadir.patch grub-0.97-dmraid-partition-names.patch
grub-0.97-dmraid-recheck-bad.patch grub-0.97-dmraid.patch
grub-0.97-gcc4.patch grub-0.97-install.in.patch
grub-0.97-mactel-kbd.patch grub-0.97-mdadm-path.patch
grub-0.97-mpath.patch grub-0.97-nx-multiinstall.patch
grub-0.97-nxstack.patch grub-0.97-once.patch
grub-0.97-prototypes.patch grub-0.97-stderr.patch
Log Message:
Move to single patch from git-diff.
grub-fedora-8.patch:
--- NEW FILE grub-fedora-8.patch ---
Makefile.in | 174 +-
acinclude.m4 | 4 +-
aclocal.m4 | 555 ++---
configure | 7639 ------------------------------------------------
configure.ac | 670 -----
configure.in | 677 +++++
docs/Makefile.in | 259 ++-
docs/grub-install.8 | 2 +
docs/grub.8 | 2 +-
docs/grub.info | 370 ++--
docs/grub.texi | 24 +-
docs/stamp-vti | 4 +-
docs/version.texi | 4 +-
grub.spec | 413 +++
grub/Makefile.in | 116 +-
grub/asmstub.c | 133 +-
lib/Makefile.in | 110 +-
lib/device.c | 352 ++-
netboot/Makefile.in | 358 ++--
stage1/Makefile.am | 8 +-
stage1/Makefile.in | 168 +-
stage2/Makefile.am | 25 +-
stage2/Makefile.in | 1718 +++++++-----
stage2/asm.S | 203 ++-
stage2/boot.c | 4 +
stage2/builtins.c | 1058 +++++---
stage2/char_io.c | 89 +-
stage2/cmdline.c | 13 +-
stage2/disk_io.c | 105 +-
stage2/fsys_ext2fs.c | 58 +-
stage2/fsys_fat.c | 6 +-
stage2/fsys_iso9660.c | 4 +-
stage2/fsys_reiserfs.c | 4 +-
stage2/fsys_vstafs.c | 24 +-
stage2/fsys_xfs.c | 10 +-
stage2/gpt.h | 68 +
stage2/graphics.c | 573 ++++
stage2/graphics.h | 42 +
stage2/iso9660.h | 4 +-
stage2/pc_slice.h | 1 +
stage2/shared.h | 21 +-
stage2/smp-imps.h | 1 -
stage2/stage2.c | 157 +-
stage2/term.h | 26 +
util/Makefile.am | 3 +-
util/Makefile.in | 130 +-
util/grub-install.in | 319 ++-
47 files changed, 5895 insertions(+), 10813 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 6652366..29ef905 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,8 +1,8 @@
-# Makefile.in generated by automake 1.9.4 from Makefile.am.
+# Makefile.in generated by automake 1.10 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004 Free Software Foundation, Inc.
+# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@@ -13,15 +13,11 @@
# PARTICULAR PURPOSE.
@SET_MAKE@
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = .
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-INSTALL = @INSTALL@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
@@ -35,19 +31,19 @@ PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
+subdir = .
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
$(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
THANKS TODO compile config.guess config.sub depcomp install-sh \
missing mkinstalldirs
-subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
- $(top_srcdir)/configure.ac
+ $(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
- configure.lineno configure.status.lineno
+ configure.lineno config.status.lineno
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =
@@ -55,10 +51,13 @@ SOURCES =
DIST_SOURCES =
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
html-recursive info-recursive install-data-recursive \
- install-exec-recursive install-info-recursive \
- install-recursive installcheck-recursive installdirs-recursive \
- pdf-recursive ps-recursive uninstall-info-recursive \
- uninstall-recursive
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
@@ -74,17 +73,14 @@ GZIP_ENV = --best
distuninstallcheck_listfiles = find . -type f -print
distcleancheck_listfiles = find . -type f -print
ACLOCAL = @ACLOCAL@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
-BUILD_EXAMPLE_KERNEL_FALSE = @BUILD_EXAMPLE_KERNEL_FALSE@
-BUILD_EXAMPLE_KERNEL_TRUE = @BUILD_EXAMPLE_KERNEL_TRUE@
CC = @CC@
CCAS = @CCAS@
+CCASDEPMODE = @CCASDEPMODE@
CCASFLAGS = @CCASFLAGS@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
@@ -93,18 +89,16 @@ CPPFLAGS = @CPPFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
-DISKLESS_SUPPORT_FALSE = @DISKLESS_SUPPORT_FALSE@
-DISKLESS_SUPPORT_TRUE = @DISKLESS_SUPPORT_TRUE@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FSYS_CFLAGS = @FSYS_CFLAGS@
+GREP = @GREP@
GRUB_CFLAGS = @GRUB_CFLAGS@
GRUB_LIBS = @GRUB_LIBS@
-HERCULES_SUPPORT_FALSE = @HERCULES_SUPPORT_FALSE@
-HERCULES_SUPPORT_TRUE = @HERCULES_SUPPORT_TRUE@
+INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
@@ -114,12 +108,9 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
NETBOOT_DRIVERS = @NETBOOT_DRIVERS@
-NETBOOT_SUPPORT_FALSE = @NETBOOT_SUPPORT_FALSE@
-NETBOOT_SUPPORT_TRUE = @NETBOOT_SUPPORT_TRUE@
NET_CFLAGS = @NET_CFLAGS@
NET_EXTRAFLAGS = @NET_EXTRAFLAGS@
OBJCOPY = @OBJCOPY@
@@ -133,22 +124,17 @@ PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PERL = @PERL@
RANLIB = @RANLIB@
-SERIAL_SPEED_SIMULATION_FALSE = @SERIAL_SPEED_SIMULATION_FALSE@
-SERIAL_SPEED_SIMULATION_TRUE = @SERIAL_SPEED_SIMULATION_TRUE@
-SERIAL_SUPPORT_FALSE = @SERIAL_SUPPORT_FALSE@
-SERIAL_SUPPORT_TRUE = @SERIAL_SUPPORT_TRUE@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STAGE1_CFLAGS = @STAGE1_CFLAGS@
STAGE2_CFLAGS = @STAGE2_CFLAGS@
STRIP = @STRIP@
VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
-ac_ct_OBJCOPY = @ac_ct_OBJCOPY@
-ac_ct_RANLIB = @ac_ct_RANLIB@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
[...22046 lines suppressed...]
# Create the device map file if it is not present.
@@ -336,6 +481,10 @@ else
# Create a safe temporary file.
test -n "$mklog" && log_file=`$mklog`
+ # Before all invocations of the grub shell, call sync to make sure
+ # the raw device is in sync with any bufferring in filesystems.
+ sync
+
$grub_shell --batch $no_floppy --device-map=$device_map <<EOF >$log_file
quit
EOF
@@ -351,34 +500,60 @@ fi
tmp=`sed -n '/^([fh]d[0-9]*)/s/\(^(.*)\).*/\1/p' $device_map \
| sort | uniq -d | sed -n 1p`
if test -n "$tmp"; then
- echo "The drive $tmp is defined multiple times in the device map $device_map" 1>&2
+ echo "The drive $tmp is defined multiple times in the new device map." 1>&2
+ if test $recheck = yes; then
+ echo "Reverting to backed up copy." 1>&2
+ mv ${device_map}.backup $device_map
+ fi
+ exit 1
+fi
+
+# Make sure device.map has at least one hd device
+grep -q "^(hd[0-9]\+)" $device_map
+if [ "x$?" != "x0" ]; then
+ echo "No suitable drive was found in the generated device map." 1>&2
+ if test $recheck = yes; then
+ echo "Reverting to backed up copy." 1>&2
+ mv ${device_map}.backup $device_map
+ fi
exit 1
fi
# Check for INSTALL_DEVICE.
case "$install_device" in
/dev/*)
- install_device=`resolve_symlink "$install_device"`
- install_drive=`convert "$install_device"`
- # I don't know why, but some shells wouldn't die if exit is
- # called in a function.
- if test "x$install_drive" = x; then
+ install_device=`resolve_symlink "$install_device"` || exit 1
+ for install_drive in `find_real_devs $install_device` ; do
+ install_drive=`convert $install_drive` || exit 1
+ if is_raid1_device $install_device; then
+ install_drive=`echo $install_drive | sed 's/,[0-9]*)/)/'`
+ fi
+ if [ "x$install_drive" = "x" ]; then
+ exit 1
+ fi
+ install_drives="${install_drives} ${install_drive}"
+ done
+ unset install_drive
+
+ if test "x$install_drives" = x ; then
exit 1
fi ;;
\([hf]d[0-9]*\))
- install_drive="$install_device" ;;
+ install_drives="$install_device" ;;
[hf]d[0-9]*)
# The GRUB format with no parenthesis.
- install_drive="($install_device)" ;;
+ install_drives="($install_device)" ;;
*)
echo "Format of install_device not recognized." 1>&2
usage
exit 1 ;;
esac
+unset install_device
+
# Get the root drive.
-root_device=`find_device ${rootdir}`
-bootdir_device=`find_device ${bootdir}`
+root_device=`find_device ${rootdir}` || exit 1
+bootdir_device=`find_device ${bootdir}` || exit 1
# Check if the boot directory is in the same device as the root directory.
if test "x$root_device" != "x$bootdir_device"; then
@@ -387,15 +562,8 @@ if test "x$root_device" != "x$bootdir_device"; then
grub_prefix="/grub"
fi
-# Convert the root device to a GRUB drive.
-root_drive=`convert "$root_device"`
-if test "x$root_drive" = x; then
- exit 1
-fi
-
-# Check if the root directory exists in the same device as the grub
-# directory.
-grubdir_device=`find_device ${grubdir}`
+# Check if the root directory exists in the same device as the grub directory.
+grubdir_device=`find_device ${grubdir}` || exit 1
if test "x$grubdir_device" != "x$root_device"; then
# For now, cannot deal with this situation.
@@ -406,61 +574,66 @@ EOF
exit 1
fi
-# Copy the GRUB images to the GRUB directory.
-for file in ${grubdir}/stage1 ${grubdir}/stage2 ${grubdir}/*stage1_5; do
- rm -f $file || exit 1
-done
-for file in \
- ${pkglibdir}/stage1 ${pkglibdir}/stage2 ${pkglibdir}/*stage1_5; do
- cp -f $file ${grubdir} || exit 1
-done
-
-# Make a default file.
-${grub_set_default} --root-directory=${rootdir} default
-
# Make sure that GRUB reads the same images as the host OS.
test -n "$mkimg" && img_file=`$mkimg`
test -n "$mklog" && log_file=`$mklog`
+# There's not a real root device, so just pick the first
+if is_raid1_device $root_device ; then
+ root_device=`find_real_devs $root_device | awk '{print $1}'`
+fi
+
+# Convert the root deviceto a GRUB drive.
+root_drive=`convert "$root_device"` || exit 1
+if [ "x$root_drive" = x ]; then
+ exit 1
+fi
+
for file in ${grubdir}/stage1 ${grubdir}/stage2 ${grubdir}/*stage1_5; do
count=5
tmp=`echo $file | sed "s|^${grubdir}|${grub_prefix}|"`
while test $count -gt 0; do
- $grub_shell --batch $no_floppy --device-map=$device_map <<EOF >$log_file
-dump ${root_drive}${tmp} ${img_file}
-quit
-EOF
- if grep "Error [0-9]*: " $log_file >/dev/null; then
- :
- elif cmp $file $img_file >/dev/null; then
- break
- fi
- sleep 1
- count=`expr $count - 1`
+ dump_boot_block $root_drive $img_file
+ if grep "Error [0-9]*: " $log_file >/dev/null; then
+ :
+ elif cmp $file $img_file >/dev/null; then
+ break
+ fi
+ sleep 1
+ count=`expr $count - 1`
done
if test $count -eq 0; then
- echo "The file $file not read correctly." 1>&2
- exit 1
+ echo "The file $file not read correctly." 1>&2
+ exit 1
fi
done
rm -f $img_file
rm -f $log_file
+if ! test -e ${grubdir}/grub.conf ; then
+ test -e ${grubdir}/menu.lst && ln -s ./menu.lst ${grubdir}/grub.conf
+fi
+
# Create a safe temporary file.
test -n "$mklog" && log_file=`$mklog`
-# Now perform the installation.
-$grub_shell --batch $no_floppy --device-map=$device_map <<EOF >$log_file
-root $root_drive
-setup $force_lba --stage2=$grubdir/stage2 --prefix=$grub_prefix $install_drive
-quit
-EOF
+for install_drive in $install_drives; do
+ # Convert the root deviceto a GRUB drive.
+ root_drive=`convert "$root_device"` || exit 1
+ if [ "x$root_drive" = x ]; then
+ exit 1
+ fi
+ install_boot_block $root_drive $install_drive
+done
-if grep "Error [0-9]*: " $log_file >/dev/null || test $debug = yes; then
+if grep "Error [0-9]*: " $log_file >/dev/null ; then
cat $log_file 1>&2
exit 1
fi
+if test $debug = yes; then
+ cat $log_file 1>&2
+fi
rm -f $log_file
--- grub-0.90-append.patch DELETED ---
--- grub-0.90-install.in.patch DELETED ---
--- grub-0.90-symlinkmenulst.patch DELETED ---
--- grub-0.91-splashimagehelp.patch DELETED ---
--- grub-0.93-configfile.patch DELETED ---
--- grub-0.93-endedit.patch DELETED ---
--- grub-0.93-graphics-bootterm.patch DELETED ---
--- grub-0.93-once.patch DELETED ---
--- grub-0.93-special-device-names.patch DELETED ---
--- grub-0.94-addsyncs.patch DELETED ---
--- grub-0.94-i2o.patch DELETED ---
--- grub-0.94-initrdmax.patch DELETED ---
--- grub-0.94-installcopyonly.patch DELETED ---
--- grub-0.95-ext2-sparse.patch DELETED ---
--- grub-0.95-gcc4.patch DELETED ---
--- grub-0.95-geometry-26kernel.patch DELETED ---
--- grub-0.95-graphics.patch DELETED ---
--- grub-0.95-hiddenmenu-tweak.patch DELETED ---
--- grub-0.95-md-mbr.patch DELETED ---
--- grub-0.95-md-rework.patch DELETED ---
--- grub-0.95-md.patch DELETED ---
--- grub-0.95-mdadm-path.patch DELETED ---
--- grub-0.95-moreraid.patch DELETED ---
--- grub-0.95-nonmbr.patch DELETED ---
--- grub-0.95-nxstack.patch DELETED ---
--- grub-0.95-odirect.patch DELETED ---
--- grub-0.95-prototypes.patch DELETED ---
--- grub-0.95-recheck-bad.patch DELETED ---
--- grub-0.95-splash-error-term.patch DELETED ---
--- grub-0.95-staticcurses.patch DELETED ---
--- grub-0.95-xpmjunk.patch DELETED ---
--- grub-0.96-gpt_partition_support.patch DELETED ---
--- grub-0.97-datadir.patch DELETED ---
--- grub-0.97-dmraid-partition-names.patch DELETED ---
--- grub-0.97-dmraid-recheck-bad.patch DELETED ---
--- grub-0.97-dmraid.patch DELETED ---
--- grub-0.97-gcc4.patch DELETED ---
--- grub-0.97-install.in.patch DELETED ---
--- grub-0.97-mactel-kbd.patch DELETED ---
--- grub-0.97-mdadm-path.patch DELETED ---
--- grub-0.97-mpath.patch DELETED ---
--- grub-0.97-nx-multiinstall.patch DELETED ---
--- grub-0.97-nxstack.patch DELETED ---
--- grub-0.97-once.patch DELETED ---
--- grub-0.97-prototypes.patch DELETED ---
--- grub-0.97-stderr.patch DELETED ---
More information about the fedora-extras-commits
mailing list