summaryrefslogtreecommitdiffstats
path: root/bootloader.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2009-03-09 13:19:55 +0100
committerHans de Goede <hdegoede@redhat.com>2009-03-09 21:14:15 +0100
commit9b23fb1cd22f6f2cc4f6b18897e65ab1e4d68328 (patch)
tree391089f89a236f409bf70952db3e71a199832ef6 /bootloader.py
parente60e58b1f7a659b448f4080075b399538878c501 (diff)
downloadanaconda-9b23fb1cd22f6f2cc4f6b18897e65ab1e4d68328.tar.gz
anaconda-9b23fb1cd22f6f2cc4f6b18897e65ab1e4d68328.tar.xz
anaconda-9b23fb1cd22f6f2cc4f6b18897e65ab1e4d68328.zip
Fix booty for dmraid
Booty was expecting the xxxxxxx part of /dev/xxxxxx paths instead of new storage device names, this patch fixes this, making booty work on dmraid with the new storage code.
Diffstat (limited to 'bootloader.py')
-rw-r--r--bootloader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootloader.py b/bootloader.py
index 313ecdff7..f9209528c 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -121,12 +121,12 @@ def writeBootloader(anaconda):
# now make the upgrade stuff work for kickstart too. ick.
if anaconda.isKickstart and anaconda.id.bootloader.doUpgradeOnly:
import checkbootloader
- (bootType, theDev) = checkbootloader.getBootloaderTypeAndBoot(anaconda.rootPath)
+ (bootType, theDev) = checkbootloader.getBootloaderTypeAndBoot(anaconda.rootPath, storage=anaconda.id.storage)
anaconda.id.bootloader.doUpgradeonly = 1
if bootType == "GRUB":
anaconda.id.bootloader.useGrubVal = 1
- anaconda.id.bootloader.setDevice(theDev)
+ anaconda.id.bootloader.setDevice(theDev.split("/")[-1])
else:
anaconda.id.bootloader.doUpgradeOnly = 0