def expand_devices(devlist):
    expanded_devlist = []
    for dev in devlist:
        if (dev == 'autodetect'):
            expanded_devlist.extend(get_filelist('/dev', '^sd[a-z]+$'))
        else:
            expanded_devlist.append(dev)
    return sorted(list(set(expanded_devlist)))
def expand_devices(devlist):
    expanded_devlist = []
    for dev in devlist:
        if (dev == 'autodetect'):
            expanded_devlist.extend(get_filelist('/dev', '^sd[a-z]+$'))
        else:
            expanded_devlist.append(dev)
    return sorted(list(set(expanded_devlist)))