index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-04-14 11:30:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-14 11:30:24 +0000 |
commit | c9e1d4a8c3435401220c1108ac938971ad517a37 (patch) | |
tree | 9c1d23ef2e9c8bb9033fe09b6e3a3c52c24db61a /README.md | |
parent | 82710fe381604fc4db77a2dbe2be8cbae3c61c05 (diff) | |
parent | 4e2c3c3dc79857d1d27137f935cb423a5e32c585 (diff) |
-rw-r--r-- | README.md | 6 |
@@ -51,7 +51,7 @@ disk_password = getpass.getpass(prompt='Disk password (won\'t echo): ') harddrive.keep_partitions = False # First, we configure the basic filesystem layout -with archinstall.Filesystem(archinstall.arguments['harddrive'], archinstall.GPT) as fs: +with archinstall.Filesystem(harddrive, archinstall.GPT) as fs: # We create a filesystem layout that will use the entire drive # (this is a helper function, you can partition manually as well) fs.use_entire_disk(root_filesystem_type='btrfs') @@ -61,9 +61,9 @@ with archinstall.Filesystem(archinstall.arguments['harddrive'], archinstall.GPT) boot.format('vfat') - # Set the flat for encrypted to allow for encryption and then encrypt + # Set the flag for encrypted to allow for encryption and then encrypt root.encrypted = True - root.encrypt(password=archinstall.arguments.get('!encryption-password', None)) + root.encrypt(password=disk_password) with archinstall.luks2(root, 'luksloop', disk_password) as unlocked_root: unlocked_root.format(root.filesystem) |