This commit is contained in:
brent s
2019-11-03 01:40:23 -05:00
parent d36368c4df
commit 0ad8314d0b
5 changed files with 16 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
from . import _common
BlockDev = _common.BlockDev
_BlockDev = _common.BlockDev

View File

@@ -220,3 +220,8 @@ class Disk(object):
p.is_hiformatted = True
self.is_partitioned = True
return()
class Mount(object):
def __init__(self, mount_xml, partobj):
self.xml = mount_xml
pass

View File

@@ -1,4 +1,10 @@
import re
import os
def hasBin(binary_name):
paths = []
for p in os.environ.get('PATH', '/usr/bin:/bin').split(':'):
os.listdir(os.path.realpath(p))
def xmlBool(xmlobj):
# https://bugs.launchpad.net/lxml/+bug/1850221