/[smeserver]/rpms/e-smith-grub/sme7/e-smith-grub-1.0.0-NoGrubInstallRAID.patch2
ViewVC logotype

Contents of /rpms/e-smith-grub/sme7/e-smith-grub-1.0.0-NoGrubInstallRAID.patch2

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Tue Oct 7 18:21:50 2008 UTC (16 years ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
New streams

1 diff -Nur -x '*.orig' -x '*.rej' e-smith-grub-1.0.0/createlinks mezzanine_patched_e-smith-grub-1.0.0/createlinks
2 --- e-smith-grub-1.0.0/createlinks 2006-12-05 12:57:01.000000000 -0700
3 +++ mezzanine_patched_e-smith-grub-1.0.0/createlinks 2006-12-05 12:55:15.000000000 -0700
4 @@ -8,5 +8,3 @@
5 post-install
6 post-upgrade
7 ));
8 -
9 -safe_symlink("/etc/e-smith/events/actions/grub-install-raid", "root/sbin/e-smith/update-bootloader")
10 diff -Nur -x '*.orig' -x '*.rej' e-smith-grub-1.0.0/root/etc/e-smith/events/actions/grub-install-raid mezzanine_patched_e-smith-grub-1.0.0/root/etc/e-smith/events/actions/grub-install-raid
11 --- e-smith-grub-1.0.0/root/etc/e-smith/events/actions/grub-install-raid 2006-03-15 23:34:15.000000000 -0700
12 +++ mezzanine_patched_e-smith-grub-1.0.0/root/etc/e-smith/events/actions/grub-install-raid 1969-12-31 17:00:00.000000000 -0700
13 @@ -1,58 +0,0 @@
14 -#!/bin/sh
15 -#----------------------------------------------------------------------
16 -# Copyright (C) 2005-2006 Mitel Networks Corporation
17 -#
18 -# This program is free software; you can redistribute it and/or modify
19 -# it under the terms of the GNU General Public License as published by
20 -# the Free Software Foundation; either version 2 of the License, or
21 -# (at your option) any later version.
22 -#
23 -# This program is distributed in the hope that it will be useful,
24 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
25 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 -# GNU General Public License for more details.
27 -#
28 -# You should have received a copy of the GNU General Public License
29 -# along with this program; if not, write to the Free Software
30 -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31 -#----------------------------------------------------------------------
32 -
33 -PATH=$PATH:/sbin
34 -export PATH
35 -
36 -HDZERO=$(grep hd0 /boot/grub/device.map | awk '{ print $2 }')
37 -
38 -# We should be able to do grub-install --recheck /dev/md1, but not in
39 -# this version of grub-install
40 -# We need to rebuild the device.map file since $HDONE didn't exist
41 -# at install time.
42 -echo "Forcing grub to rescan devices"
43 -
44 -grub-install --no-floppy --recheck $HDZERO
45 -
46 -echo "Calling grub-install on $HDZERO"
47 -
48 -grub --no-floppy --batch <<HERE
49 -device (hd0) $HDZERO
50 -root (hd0,0)
51 -setup (hd0)
52 -HERE
53 -
54 -HDONE=$(grep hd1 /boot/grub/device.map | awk '{ print $2 }')
55 -
56 -if [ -z "$HDONE" ]
57 -then
58 - echo "Skipping grub-install on hd1"
59 - exit 0
60 -fi
61 -
62 -echo "Calling grub-install on $HDONE"
63 -
64 -grub --no-floppy --batch <<HERE
65 -device (hd0) $HDONE
66 -root (hd0,0)
67 -setup (hd0)
68 -quit
69 -HERE
70 -
71 -exit 0

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed