/[smeserver]/rpms/anaconda/sme7/0008-Start-boot-raid-device-first-so-it-will-be-in-sync.patch
ViewVC logotype

Contents of /rpms/anaconda/sme7/0008-Start-boot-raid-device-first-so-it-will-be-in-sync.patch

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


Revision 1.1 - (show annotations) (download)
Tue Oct 27 01:24:44 2009 UTC (14 years, 6 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Update spec

1 From aec9414a36bfad900faa6cb5e2dc99fe26602dfa Mon Sep 17 00:00:00 2001
2 From: Shad L. Lords <slords@mail.com>
3 Date: Mon, 26 Oct 2009 18:07:38 -0600
4 Subject: [PATCH] Start /boot raid device first so it will be in sync for grub install
5
6 ---
7 fsset.py | 4 ++++
8 packages.py | 1 +
9 2 files changed, 5 insertions(+), 0 deletions(-)
10
11 diff --git a/fsset.py b/fsset.py
12 index b249172..8ece52d 100644
13 --- a/fsset.py
14 +++ b/fsset.py
15 @@ -1560,6 +1560,10 @@ MAILADDR root
16 entry.device.setupDevice(chroot)
17 self.volumesCreated = 1
18
19 + def createBootRaid (self, chroot='/'):
20 + bootDev = self.getBootDev()
21 + if bootDev.getDevice().startswith('md'):
22 + bootDev.setupDevice(chroot)
23
24 def makeFilesystems (self, chroot='/'):
25 formatted = []
26 diff --git a/packages.py b/packages.py
27 index 73f2c9e..a704afb 100644
28 --- a/packages.py
29 +++ b/packages.py
30 @@ -564,6 +564,7 @@ def turnOnFilesystems(dir, thefsset, diskset, partitions, upgrade, instPath):
31 if not thefsset.isActive():
32 diskset.savePartitions ()
33 thefsset.checkBadblocks(instPath)
34 + thefsset.createBootRaid(instPath)
35 if not thefsset.volumesCreated:
36 thefsset.createLogicalVolumes(instPath)
37 thefsset.formatSwap(instPath)
38 --
39 1.5.5.6
40

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