Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2019-06-09 21:48:58 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2019-06-09 21:48:58 +0200
commitd1f11e008dc0e8257cc6073c4a71d77383063566 (patch)
treee2c35ac70ce9674924b13ccc34465497680b208a
parentebe77f1d6ad05fa7eb511ad5b2d080f4bb453dee (diff)
Moved sorting logic
-rw-r--r--archinstall.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/archinstall.py b/archinstall.py
index 2f1c0a6a..be480355 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -529,6 +529,9 @@ if __name__ == '__main__':
o = b''.join(sys_command('/usr/bin/parted -s {drive} set 1 esp on'.format(**args)).exec())
o = b''.join(sys_command('/usr/bin/parted -s {drive} set 1 boot on'.format(**args)).exec())
o = b''.join(sys_command('/usr/bin/parted -s {drive} mkpart primary {start} {size}'.format(**args)).exec())
+ # TODO: grab paritions after each parted/partition step instead of guessing which partiton is which later on.
+ # Create one, grab partitions - dub that to "boot" or something. do the next partition, grab that and dub it "system".. or something..
+ # This "assumption" has bit me in the ass so many times now I've stoped counting.. Jerker is right.. Don't do it like this :P
args['paritions'] = grab_partitions(args['drive'])
print(f'Partitions: (Boot: {list(args["paritions"].keys())[0]})')