diff options
-rw-r--r-- | booty/bootloaderInfo.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/booty/bootloaderInfo.py b/booty/bootloaderInfo.py index 0c1ec5b5b..90073e279 100644 --- a/booty/bootloaderInfo.py +++ b/booty/bootloaderInfo.py @@ -89,14 +89,12 @@ def getRootDevName(initrd, rootDevice): return rootDevice.path try: - if rootDevice.uuid: - return "UUID=%s" % rootDevice.uuid - elif rootDevice.label: - return "LABEL=%s" % rootDevice.label - - return rootDevice.path + if rootDevice.format.uuid: + return "UUID=%s" % rootDevice.format.uuid except: - return rootDevice.path + pass + + return rootDevice.path class KernelArguments: |