|
|
|
@ -1301,3 +1301,21 @@ def getOsProberHash(getContentFunc=None):
|
|
|
|
|
else:
|
|
|
|
|
osProberHash = {}
|
|
|
|
|
return osProberHash
|
|
|
|
|
|
|
|
|
|
def refreshLVM():
|
|
|
|
|
"""Run command which refresh information about LVM"""
|
|
|
|
|
vgscan = getProgPath('/sbin/vgscan')
|
|
|
|
|
vgchange = getProgPath('/sbin/vgchange')
|
|
|
|
|
lvchange = getProgPath('/sbin/lvchange')
|
|
|
|
|
|
|
|
|
|
if vgscan and vgchange and lvchange:
|
|
|
|
|
process(vgscan).success()
|
|
|
|
|
process(vgchange,'-ay','--refresh').success()
|
|
|
|
|
for group in getLvmGroups():
|
|
|
|
|
process(lvchange,'-ay','--refresh',group).success()
|
|
|
|
|
|
|
|
|
|
def refreshUdev():
|
|
|
|
|
"""Run command which refresh information about device in udev"""
|
|
|
|
|
udevadm = getProgPath('/sbin/udevadm')
|
|
|
|
|
if udevadm:
|
|
|
|
|
process(udevadm,"trigger","--subsystem-match","block").success()
|
|
|
|
|