Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/minimal.py
diff options
context:
space:
mode:
authorDylan Taylor <dylan@dylanmtaylor.com>2021-05-15 12:07:46 -0400
committerDylan Taylor <dylan@dylanmtaylor.com>2021-05-15 12:07:46 -0400
commit37e818b3d1a7b76d1bdc511876a2a30d7a7a32d1 (patch)
tree75e11aeefd8f16ee70d04eb3d8d2e1003304390b /examples/minimal.py
parentd93ef24e8e080ab4c71366bfba0340d16f17524b (diff)
More manual fixes
Diffstat (limited to 'examples/minimal.py')
-rw-r--r--examples/minimal.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/minimal.py b/examples/minimal.py
index 98d9a6f0..efd66ab7 100644
--- a/examples/minimal.py
+++ b/examples/minimal.py
@@ -11,8 +11,9 @@ if archinstall.arguments.get('help', None):
archinstall.arguments['harddrive'] = archinstall.select_disk(archinstall.all_disks())
+
def install_on(mountpoint):
- # We kick off the installer by telling it where the
+ # We kick off the installer by telling it where the
with archinstall.Installer(mountpoint) as installation:
# Strap in the base system, add a boot loader and configure
# some other minor details as specified by this profile and user.
@@ -36,9 +37,10 @@ def install_on(mountpoint):
archinstall.log(f" * root (password: airoot)")
archinstall.log(f" * devel (password: devel)")
+
if archinstall.arguments['harddrive']:
archinstall.arguments['harddrive'].keep_partitions = False
-
+
print(f" ! Formatting {archinstall.arguments['harddrive']} in ", end='')
archinstall.do_countdown()
@@ -68,4 +70,4 @@ if archinstall.arguments['harddrive']:
boot.mount('/mnt/boot')
-install_on('/mnt') \ No newline at end of file
+install_on('/mnt')