index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-07-06 18:44:42 +0200 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-07-06 18:44:42 +0200 |
commit | b4a6f03b962d9309a1a18bd6de6a50a0146252a1 (patch) | |
tree | bcdc2041ab9fe8733760fbe5d1d9f344923ceb0a /installer.py | |
parent | ff9475ffe49d4ff8bca2b7fc1b6f8105e5277745 (diff) |
-rw-r--r-- | installer.py | 5 |
diff --git a/installer.py b/installer.py index faeb7edc..1204ecd2 100644 --- a/installer.py +++ b/installer.py @@ -10,25 +10,20 @@ harddrive = archinstall.all_disks()['/dev/loop0'] disk_password = '1234' # getpass.getpass(prompt='Disk password (won\'t echo): ') with archinstall.Filesystem(harddrive, archinstall.GPT) as fs: - print(f'Formatting {harddrive}') fs.use_entire_disk('luks2') with archinstall.luks2(fs) as crypt: if harddrive.partition[1].size == '512M': raise OSError('Trying to encrypt the boot partition for petes sake..') - print(f'Encrypting {harddrive.partition[1]}') key_file = crypt.encrypt(harddrive.partition[1], password=disk_password, key_size=512, hash_type='sha512', iter_time=10000, key_file='./pwfile') unlocked_device = crypt.unlock(harddrive.partition[1], 'luksloop', key_file) - print('Formatting partitions.') harddrive.partition[0].format('fat32') unlocked_device.format('btrfs') with archinstall.Installer(unlocked_device, hostname='testmachine') as installation: - print('Installing minimal installation to disk.') if installation.minimal_installation(): - print('Adding bootloader.') installation.add_bootloader(harddrive.partition[0]) installation.add_additional_packages(['nano', 'wget', 'git']) |