Displaying 4 results from an estimated 4 matches for "enable_cursor".
2011 Oct 20
2
[PATCH] pygrub: do not overload RuntimeError for "no menu.lst found"
..."no bootloader config file found" avoids
this.
diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub
--- a/tools/pygrub/src/pygrub
+++ b/tools/pygrub/src/pygrub
@@ -29,6 +29,9 @@ import grub.ExtLinuxConf
PYGRUB_VER = 0.6
+class NotFoundError(RuntimeError):
+ pass
+
def enable_cursor(ison):
if ison:
val = 2
@@ -412,7 +412,7 @@ class Grub:
self.cf.filename = f
break
if self.__dict__.get(''cf'', None) is None:
- raise RuntimeError, "couldn''t find bootloader config file in the image p...
2012 Jul 19
2
[PATCH] pygrub: add syslog support to pygrub
...9 +13,10 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
-import os, sys, string, struct, tempfile, re, traceback
+import os, sys, string, struct, tempfile, re
import copy
import logging
+import logging.handlers
import platform
import xen.lowlevel.xc
@@ -35,7 +36,7 @@ def enable_cursor(ison):
val = 2
else:
val = 0
-
+
try:
curses.curs_set(val)
except _curses.error:
@@ -79,7 +80,7 @@ def get_solaris_slice(file, offset):
if slicetag == V_ROOT:
return slicesect * SECTOR_SIZE
- raise RuntimeError, "No r...
2020 Mar 05
55
[PATCH 00/22] drm: Convert drivers to drm_simple_encoder_init()
A call to drm_simple_encoder_init() initializes an encoder without
further functionality. It only provides the destroy callback to
cleanup the encoder's state. Only few drivers implement more
sophisticated encoders than that. Most drivers implement such a
simple encoder and can use drm_simple_encoder_init() instead.
The patchset converts drivers where the encoder's instance is
embedded in
2020 Mar 05
55
[PATCH 00/22] drm: Convert drivers to drm_simple_encoder_init()
A call to drm_simple_encoder_init() initializes an encoder without
further functionality. It only provides the destroy callback to
cleanup the encoder's state. Only few drivers implement more
sophisticated encoders than that. Most drivers implement such a
simple encoder and can use drm_simple_encoder_init() instead.
The patchset converts drivers where the encoder's instance is
embedded in