예제 #1
0
def get_devices():
    return parted.get_devices()
예제 #2
0
import string
import time
import copy
import parted

# Arch-specific modules
import partition

try:
    drvlist = []
    parted.init()
    parted.device_probe_all()

    print "Examining drives..."
    try:
        drvinstlist = [parted.get_devices()[0]]
    except:
        print "No available drives found!"
        killsystem()

    bootdrv = ""

    for drv in drvinstlist:
        if not bootdrv:
            bootdrv = drv.get_path()

        drvdisk = drv.disk_open()
        if drvdisk is not None:
            partlist = drvdisk.get_part_list()
            isdata = 0
            for part in partlist:
예제 #3
0
def get_devices():
    return parted.get_devices()
예제 #4
0
import string
import time
import copy
import parted

# Arch-specific modules
import partition

try:
    drvlist = []
    parted.init()
    parted.device_probe_all()
    
    print "Examining drives..."
    try:
	drvinstlist = [parted.get_devices()[0]]
    except:
	print "No available drives found!"
	killsystem()

    bootdrv = ""
    
    for drv in drvinstlist:
	if not bootdrv:
	    bootdrv = drv.get_path()
	    
	drvdisk = drv.disk_open()
	if drvdisk is not None:
	    partlist = drvdisk.get_part_list()
	    isdata = 0
	    for part in partlist: