From 27059f4f803c1eeefce54308a271e69092bea8ab Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Mon, 18 Nov 2019 17:15:15 +0100 Subject: Added debug --- archinstall.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'archinstall.py') 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 -- cgit v1.2.3-70-g09d2