/[smeserver]/rpms/booty/sme8/0001-Install-grub-correctly-on-raid1-devices.patch
ViewVC logotype

Contents of /rpms/booty/sme8/0001-Install-grub-correctly-on-raid1-devices.patch

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


Revision 1.3 - (show annotations) (download)
Sat Sep 17 21:16:16 2011 UTC (12 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
FILE REMOVED
Upstream import

1 From e955bd03bf0c866a96abc419c6bd7ea8770e70e1 Mon Sep 17 00:00:00 2001
2 From: Shad L. Lords <slords@mail.com>
3 Date: Thu, 22 Oct 2009 09:24:38 -0600
4 Subject: [PATCH] Install grub correctly on raid1 devices
5
6 ---
7 bootloaderInfo.py | 13 ++++---------
8 1 files changed, 4 insertions(+), 9 deletions(-)
9
10 diff --git a/bootloaderInfo.py b/bootloaderInfo.py
11 index b0671ed..1e518fc 100644
12 --- a/bootloaderInfo.py
13 +++ b/bootloaderInfo.py
14 @@ -940,17 +940,14 @@ class x86BootloaderInfo(bootloaderInfo):
15
16 cmds = []
17 for bootDev in bootDevs:
18 - gtPart = self.getMatchingPart(bootDev, grubTarget)
19 - gtDisk = self.grubbyPartitionName(getDiskPart(gtPart)[0])
20 + gtDisk = self.grubbyPartitionName(getDiskPart(bootDev)[0])
21 bPart = self.grubbyPartitionName(bootDev)
22 - cmd = "root %s\n" % (bPart,)
23
24 stage1Target = gtDisk
25 if target == "partition":
26 - stage1Target = self.grubbyPartitionName(gtPart)
27 + stage1Target = self.grubbyPartitionName(bootDev)
28
29 - cmd += "install %s%s/stage1 d %s %s/stage2 p %s%s/grub.conf" % \
30 - (forcelba, grubPath, stage1Target, grubPath, bPart, grubPath)
31 + cmd = "root %s\nsetup %s" % (bPart, stage1Target)
32 cmds.append(cmd)
33
34 if not justConfigFile:
35 @@ -1139,9 +1136,7 @@ class x86BootloaderInfo(bootloaderInfo):
36 grubbyRootPart = self.grubbyPartitionName(rootDev)
37 break
38
39 - cmd = "root %s\ninstall %s/stage1 d %s %s/stage2 p %s%s/grub.conf" \
40 - % (grubbyRootPart, grubPath, grubbyStage1Dev,
41 - grubPath, grubbyRootPart, grubPath)
42 + cmd = "root %s\nsetup %s" % (grubbyRootPart, grubbyStage1Dev)
43
44 if not justConfigFile:
45 #log("GRUB command %s", cmd)
46 --
47 1.5.5.6
48

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