/[smeserver]/rpms/booty/sme8/booty-0.80.6-smepatches.patch
ViewVC logotype

Contents of /rpms/booty/sme8/booty-0.80.6-smepatches.patch

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


Revision 1.3 - (show annotations) (download)
Tue Oct 27 01:36:25 2009 UTC (15 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
FILE REMOVED
Update spec

1 diff -up booty-0.80.6/bootloaderInfo.py.smepatches booty-0.80.6/bootloaderInfo.py
2 --- booty-0.80.6/bootloaderInfo.py.smepatches 2009-05-30 12:13:40.000000000 -0600
3 +++ booty-0.80.6/bootloaderInfo.py 2009-05-30 12:28:42.000000000 -0600
4 @@ -934,17 +934,14 @@
5
6 cmds = []
7 for bootDev in bootDevs:
8 - gtPart = self.getMatchingPart(bootDev, grubTarget)
9 - gtDisk = self.grubbyPartitionName(getDiskPart(gtPart)[0])
10 + gtDisk = self.grubbyPartitionName(getDiskPart(bootDev)[0])
11 bPart = self.grubbyPartitionName(bootDev)
12 - cmd = "root %s\n" % (bPart,)
13
14 stage1Target = gtDisk
15 if target == "partition":
16 - stage1Target = self.grubbyPartitionName(gtPart)
17 + stage1Target = self.grubbyPartitionName(bootDev)
18
19 - cmd += "install %s%s/stage1 d %s %s/stage2 p %s%s/grub.conf" % \
20 - (forcelba, grubPath, stage1Target, grubPath, bPart, grubPath)
21 + cmd = "root %s\nsetup %s" % (bPart, stage1Target)
22 cmds.append(cmd)
23
24 if not justConfigFile:
25 @@ -1133,9 +1130,7 @@
26 grubbyRootPart = self.grubbyPartitionName(rootDev)
27 break
28
29 - cmd = "root %s\ninstall %s/stage1 d %s %s/stage2 p %s%s/grub.conf" \
30 - % (grubbyRootPart, grubPath, grubbyStage1Dev,
31 - grubPath, grubbyRootPart, grubPath)
32 + cmd = "root %s\nsetup %s" % (grubbyRootPart, grubbyStage1Dev)
33
34 if not justConfigFile:
35 #log("GRUB command %s", cmd)
36 @@ -2084,9 +2079,9 @@
37 # returns a product name to use for the boot loader string
38 # FIXME: this is based on the stuff from anaconda, but kind of crappy :-/
39 def getProductName():
40 - # try redhat-release first
41 - if os.access("/etc/redhat-release", os.R_OK):
42 - f = open("/etc/redhat-release", "r")
43 + # try e-smith-release first
44 + if os.access("/etc/e-smith-release", os.R_OK):
45 + f = open("/etc/e-smith-release", "r")
46 lines = f.readlines()
47 f.close()
48 for buf in lines:

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