[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH 5/5] booty changes for iswmd
- From: Jacek Danecki <Jacek Danecki intel com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: Re: [PATCH 5/5] booty changes for iswmd
- Date: Fri, 12 Jun 2009 14:06:39 +0200
Hans de Goede wrote:
Hi,
Comments inline.
Rewritten patch
booty changes for iswmd
This patch adds support for iswmd kernel parameter in booty.
diff --git a/booty/util.py b/booty/util.py
index 74ba561..4128705 100644
--- a/booty/util.py
+++ b/booty/util.py
@@ -1,11 +1,13 @@
import string
+from flags import flags
def getDiskPart(dev, storage):
path = storage.devicetree.getDeviceByName(dev).path[5:]
cut = len(dev)
if (path.startswith('rd/') or path.startswith('ida/') or
path.startswith('cciss/') or path.startswith('sx8/') or
- path.startswith('mapper/') or path.startswith('mmcblk')):
+ path.startswith('mapper/') or path.startswith('mmcblk') or
+ path.startswith('md')):
if dev[-2] == 'p':
cut = -1
elif dev[-3] == 'p':
diff --git a/booty/x86.py b/booty/x86.py
index 84d2625..910f930 100644
--- a/booty/x86.py
+++ b/booty/x86.py
@@ -4,6 +4,7 @@ import string
from booty import BootyNoKernelWarning
from util import getDiskPart
from bootloaderInfo import *
+from flags import flags
import checkbootloader
import iutil
import rhpl
@@ -54,12 +55,16 @@ class x86BootloaderInfo(efiBootloaderInfo):
if path.startswith("mapper/luks-"):
return []
+
if path.startswith('md'):
- bootable = 0
- parts = checkbootloader.getRaidDisks(device, self.storage,
+ if flags.cmdline.has_key("iswmd"):
+ return [device]
+ else:
+ bootable = 0
+ parts = checkbootloader.getRaidDisks(device, self.storage,
raidLevel=1, stripPart=0)
- parts.sort()
- return parts
+ parts.sort()
+ return parts
return [device]
@@ -329,8 +334,9 @@ class x86BootloaderInfo(efiBootloaderInfo):
# XXX hack city. If they're not the sort of thing that'll
# be in the device map, they shouldn't still be in the list.
path = self.storage.devicetree.getDeviceByName(drive).path
- if not drive.startswith('md'):
- f.write("(%s) %s\n" % (self.grubbyDiskName(drive), path))
+ if ((drive.startswith('md') and flags.cmdline.has_key("iswmd")) or
+ not drive.startswith('md')):
+ f.write("(%s) %s\n" % (self.grubbyDiskName(drive), path))
f.close()
sysconf = '/etc/sysconfig/grub'
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]