summaryrefslogtreecommitdiffstats
path: root/booty
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2009-03-18 16:26:59 +0100
committerHans de Goede <hdegoede@redhat.com>2009-03-18 19:36:39 +0100
commitd380c8d630d40ea6aaf513e3f0941f44b0334394 (patch)
treecc567e59ac9a3ee80f31dcbbbea86921fd341808 /booty
parent9b0ba331294a92adb34b8fd5113f0da627225af7 (diff)
downloadanaconda-d380c8d630d40ea6aaf513e3f0941f44b0334394.tar.gz
anaconda-d380c8d630d40ea6aaf513e3f0941f44b0334394.tar.xz
anaconda-d380c8d630d40ea6aaf513e3f0941f44b0334394.zip
Do not write LV uuid to grub.conf, but the filesystem uuid
When re-using an existing LV for /, and thus one which has uuid set in its representing Device, we would write the LV uuid to grub.conf as root= parameter, resulting in a non booting system. Also we no longer keep labels anywhere, so don't look for a label. Note that we are only hitting this with pre-existing LV's because we are not setting / updating the LVDevice's uuid when creating a new one (something which we ought to fix).
Diffstat (limited to 'booty')
-rw-r--r--booty/bootloaderInfo.py12
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: