From fe872702c540121fdd8857b8fa2371d2e9cacded Mon Sep 17 00:00:00 2001 From: Shad L. Lords Date: Mon, 19 Oct 2009 08:14:41 -0600 Subject: [PATCH] Start /boot raid device first so it will be in sync for grub install --- fsset.py | 4 ++++ packages.py | 1 + 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/fsset.py b/fsset.py index 2682d2a..7574ac3 100644 --- a/fsset.py +++ b/fsset.py @@ -1881,6 +1881,10 @@ MAILADDR root entry.device.setupDevice(chroot, vgdevice = vg) self.volumesCreated = 1 + def createBootRaid (self, chroot='/'): + bootDev = self.getBootDev() + if bootDev.getDevice().startswith('md'): + bootDev.setupDevice(chroot) def makeFilesystems (self, chroot='/'): formatted = [] diff --git a/packages.py b/packages.py index c05f5fa..e2d719b 100644 --- a/packages.py +++ b/packages.py @@ -147,6 +147,7 @@ def turnOnFilesystems(anaconda): anaconda.id.diskset.savePartitions () anaconda.id.partitions.doEncryptionRetrofits() anaconda.id.fsset.checkBadblocks(anaconda.rootPath) + anaconda.id.fsset.createBootRaid(anaconda.rootPath) if not anaconda.id.fsset.volumesCreated: try: anaconda.id.fsset.createLogicalVolumes(anaconda.rootPath) -- 1.5.5.6