Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2019-11-18 17:15:15 +0100
committerAnton Hvornum <anton.feeds+github@gmail.com>2019-11-18 17:15:15 +0100
commit27059f4f803c1eeefce54308a271e69092bea8ab (patch)
tree1ae3dc8679ce3d208c229c7cbaaaf4356022e290 /archinstall.py
parentac8393645c49d0c11170566d7a1650b2da906567 (diff)
Added debug
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index 040b29b5..311cc420 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -587,7 +587,9 @@ def close_disks():
o = simple_command('/usr/bin/umount -R /mnt')
o = simple_command('/usr/bin/cryptsetup close /dev/mapper/luksdev')
-def format_disk(drive, start='512MiB', end='100%', emulate=False):
+def format_disk(drive=None, start='512MiB', end='100%', emulate=False):
+ if not drive:
+ raise ValueError('Need to supply a drive path, for instance: /dev/sdx')
print(f'[N] Setting up {drive}.')
# dd if=/dev/random of=args['drive'] bs=4096 status=progress
# https://github.com/dcantrell/pyparted would be nice, but isn't officially in the repo's #SadPanda