index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2019-11-28 00:14:53 +0000 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2019-11-28 00:14:53 +0000 |
commit | 375976b7ce75c6309ddb06c5bd29d781dbb54fd6 (patch) | |
tree | f747849315d59f5370d2aa7969c149c197c16eb8 | |
parent | 93fb7f3ee51c8bcaee6dac9a2d31e0e7cf6b3c77 (diff) |
-rw-r--r-- | archinstall.py | 11 |
diff --git a/archinstall.py b/archinstall.py index 06e51300..c4b21b9d 100644 --- a/archinstall.py +++ b/archinstall.py @@ -903,7 +903,9 @@ def encrypt_partition(drive, partition, keyfile='/tmp/diskpw', *positionals, **k return True def mkfs_btrfs(drive='/dev/mapper/luksdev', *positionals, **kwargs): + print('On drive:', drive) o = b''.join(sys_command(f'/usr/bin/mkfs.btrfs -f {drive}')) + print(o) if not b'UUID' in o: return False return True @@ -1179,9 +1181,10 @@ if __name__ == '__main__': # with open(args['pwfile'], 'r') as pw: # PIN = pw.read().strip() - print() - print('[!] Disk PASSWORD is: {}'.format(args['password'])) - print() + if not args['skip-encrypt']: + print() + print('[!] Disk PASSWORD is: {}'.format(args['password'])) + print() if not args['rerun'] or args['ignore-rerun']: for i in range(5, 0, -1): @@ -1224,7 +1227,7 @@ if __name__ == '__main__': if args['skip-encrypt']: on_part = f'{args["drive"]}/{args["partitions"]["2"]}' if not mkfs_btrfs(on_part): - print('[E] Could not setup btrfs filesystem.', o) + print('[E] Could not setup btrfs filesystem.') exit(1) mount_mountpoints('drive', '1') |