From aec9414a36bfad900faa6cb5e2dc99fe26602dfa Mon Sep 17 00:00:00 2001 From: Shad L. Lords Date: Mon, 26 Oct 2009 18:07:38 -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 b249172..8ece52d 100644 --- a/fsset.py +++ b/fsset.py @@ -1560,6 +1560,10 @@ MAILADDR root entry.device.setupDevice(chroot) 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 73f2c9e..a704afb 100644 --- a/packages.py +++ b/packages.py @@ -564,6 +564,7 @@ def turnOnFilesystems(dir, thefsset, diskset, partitions, upgrade, instPath): if not thefsset.isActive(): diskset.savePartitions () thefsset.checkBadblocks(instPath) + thefsset.createBootRaid(instPath) if not thefsset.volumesCreated: thefsset.createLogicalVolumes(instPath) thefsset.formatSwap(instPath) -- 1.5.5.6