summaryrefslogtreecommitdiffstats
path: root/bootloader.py
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader.py')
-rw-r--r--bootloader.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bootloader.py b/bootloader.py
index b9d995e4d..53dba2b74 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -28,6 +28,7 @@ import iutil
import string
from flags import flags
from constants import *
+from storage.devices import devicePathToName
import gettext
_ = lambda x: gettext.ldgettext("anaconda", x)
@@ -125,7 +126,7 @@ def writeBootloader(anaconda):
anaconda.id.bootloader.doUpgradeonly = 1
if bootType == "GRUB":
anaconda.id.bootloader.useGrubVal = 1
- anaconda.id.bootloader.setDevice(theDev.split("/")[-1])
+ anaconda.id.bootloader.setDevice(devicePathToName(theDev))
else:
anaconda.id.bootloader.doUpgradeOnly = 0