index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2019-11-27 19:06:12 +0000 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2019-11-27 19:06:12 +0000 |
commit | 97f8f642f7c33eee4f4f9260085f6f95790988d7 (patch) | |
tree | 2fdc3431ba8f851b39794c11844549021dfda3e1 | |
parent | bbb62bc8798bb874835dcbde711d09311b44ae3f (diff) |
-rw-r--r-- | archinstall.py | 8 |
diff --git a/archinstall.py b/archinstall.py index 80ea9f07..2b27f8be 100644 --- a/archinstall.py +++ b/archinstall.py @@ -410,7 +410,7 @@ class sys_command():#Thread): #self.callback(self, *self.args, **self.kwargs) -def get_drive_from_uuid(uuid): +def get_drive_from_uuid(drive): if len(harddrives) <= 0: raise ValueError("No hard drives to iterate in order to find: {}".format(uuid)) for drive in harddrives: @@ -1133,14 +1133,14 @@ if __name__ == '__main__': time.sleep(1) close_disks() - print(f'[N] Setting up {drive}.') + print(f'[N] Setting up {args["drive"]}.') format_disk('drive', start='start', end='size') refresh_partition_list('drive') print(f'Partitions: (Boot: {list(args["partitions"].keys())[0]})') if len(args['partitions']) <= 0: - print('[E] No partitions were created on {drive}'.format(**args), o) + print(f'[E] No partitions were created on {args["drive"]}', o) exit(1) if not args['rerun'] or args['ignore-rerun']: @@ -1150,7 +1150,7 @@ if __name__ == '__main__': # "--cipher sha512" breaks the shit. # TODO: --use-random instead of --use-urandom - print(f'[N] Adding encryption to {drive}{partitions["2"]}.') + print(f'[N] Adding encryption to {args["drive"]}{partitions["2"]}.') if not encrypt_partition('drive', '2', 'pwfile'): print('[E] Failed to setup disk encryption.', o) exit(1) |