[node-patches] Change in ovirt-node[master]: Strip the leading /dev/ from the console path

rbarry at redhat.com rbarry at redhat.com
Mon Oct 20 14:52:34 UTC 2014


Ryan Barry has uploaded a new change for review.

Change subject: Strip the leading /dev/ from the console path
......................................................................

Strip the leading /dev/ from the console path

The kernel cmdline doesn't like /dev/${console}, use ${console}
instead.

Change-Id: I834cb74ac27c415537eb480694905c349f3164d5
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=966302
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M src/ovirt/node/setup/core/status_page.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/74/34274/1

diff --git a/src/ovirt/node/setup/core/status_page.py b/src/ovirt/node/setup/core/status_page.py
index 1627e11..64ed0d5 100644
--- a/src/ovirt/node/setup/core/status_page.py
+++ b/src/ovirt/node/setup/core/status_page.py
@@ -24,6 +24,7 @@
 from ovirt.node.utils.network import IPAddress
 from ovirt.node.utils.system import Bootloader
 import os
+import re
 import textwrap
 
 
@@ -289,7 +290,7 @@
             if not console_path:
                 return b.get("console",  "")
             else:
-                b["console"] = str(console_path)
+                b["console"] = re.sub(r'^/dev/', '', str(console_path))
         return self.plugin.dry_or(real_console) or ""
 
 


-- 
To view, visit http://gerrit.ovirt.org/34274
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I834cb74ac27c415537eb480694905c349f3164d5
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>



More information about the node-patches mailing list