Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2021-04-14 12:17:17 +0200
committerGitHub <noreply@github.com>2021-04-14 12:17:17 +0200
commit48c679d5013e1c5a69ebcb05519aa1c73781158d (patch)
treea5566fc0a73bcacf9e54efed0ce51d14177d7cef /README.md
parent5b3a1221414a60676eb8622d033a6fadc1661411 (diff)
Updated README's minimal example
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index a48f0a91..9e51ddf8 100644
--- a/README.md
+++ b/README.md
@@ -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')
@@ -63,7 +63,7 @@ with archinstall.Filesystem(archinstall.arguments['harddrive'], archinstall.GPT)
# Set the flat 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)