i'm pretty sure luks non-gi is now done

This commit is contained in:
brent s
2019-11-10 01:37:15 -05:00
parent a1c126847c
commit f68069a25e
6 changed files with 320 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
import copy
import datetime
import math
import os
import re
import subprocess
import uuid
@@ -126,6 +126,7 @@ class Member(object):
self._parseDeviceBlock()
return()
class Array(object):
def __init__(self, array_xml, homehost, devpath = None):
self.xml = array_xml
@@ -230,6 +231,7 @@ class Array(object):
return()
def writeConf(self, conf = '/etc/mdadm.conf'):
conf = os.path.realpath(conf)
with open(conf, 'r') as fh:
conflines = fh.read().splitlines()
# TODO: logging