From 114d102aec42c6d56f591a7d5843633bd2632be5 Mon Sep 17 00:00:00 2001 From: Shad L. Lords Date: Mon, 19 Oct 2009 08:14:41 -0600 Subject: [PATCH 05/17] 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 ea9ba66..7e3c26f 100644 --- a/fsset.py +++ b/fsset.py @@ -1887,6 +1887,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 a1a6e56..5bce4be 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.7.4.1