index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2019-11-18 20:14:56 +0000 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2019-11-18 20:14:56 +0000 |
commit | f5f1f210fe852dfdca3f42200e444d2a61d329c3 (patch) | |
tree | f8abee25e4ec22084fa2ecab00cf8c088ea61e55 /archinstall.py | |
parent | 8c03f60765c1a9490d40b50181f599115ec7b70e (diff) |
-rw-r--r-- | archinstall.py | 9 |
diff --git a/archinstall.py b/archinstall.py index c03fd78e..b2716284 100644 --- a/archinstall.py +++ b/archinstall.py @@ -394,11 +394,11 @@ def get_drive_from_uuid(uuid): return None -def get_drive_from_part_uuid(partuuid): +def get_drive_from_part_uuid(partuuid, *positionals, **kwargs): if len(harddrives) <= 0: raise ValueError("No hard drives to iterate in order to find: {}".format(uuid)) for drive in harddrives: - for partition in get_partitions(f'/dev/{drive}'): + for partition in get_partitions(f'/dev/{drive}', *positionals, **kwargs): o = simple_command(f'blkid -s PARTUUID -o value /dev/{drive}') if len(o) and o == partuuid: return drive @@ -463,7 +463,7 @@ def device_state(name, *positionals, **kwargs): return return True -def get_partitions(dev): +def get_partitions(dev, *positionals, **kwargs): drive_name = os.path.basename(dev) parts = oDict() #o = b''.join(sys_command('/usr/bin/lsblk -o name -J -b {dev}'.format(dev=dev))) @@ -790,7 +790,8 @@ def cache_diskpw_on_disk(): pw.write(args['password']) def refresh_partition_list(drive, *positionals, **kwargs): - args['paritions'] = get_partitions(drive) + args['paritions'] = get_partitions(drive, *positionals, **kwargs) + return True if __name__ == '__main__': update_git() # Breaks and restarts the script if an update was found. |