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:
authorAnton Hvornum <anton@hvornum.se>2021-05-15 17:49:58 +0000
committerGitHub <noreply@github.com>2021-05-15 17:49:58 +0000
commita75dd6ea3a4f961ddfeaff6b4378bd4aac5c3b39 (patch)
tree7db58a8b4e1c640dc16d0060704f3b304a4e325d /examples/minimal.py
parent5254ac62200bb279c855d06bea1006b323bfae87 (diff)
parent5067aaa260d218f7d1d60ada2fe8413e90970060 (diff)
Merge pull request #447 from dylanmtaylor/formatting
Very selectively fix some PEP 8 issues and other manual formatting changes
Diffstat (limited to 'examples/minimal.py')
-rw-r--r--examples/minimal.py24
1 files changed, 13 insertions, 11 deletions
diff --git a/examples/minimal.py b/examples/minimal.py
index 98d9a6f0..308a5e30 100644
--- a/examples/minimal.py
+++ b/examples/minimal.py
@@ -1,18 +1,19 @@
import archinstall
# Select a harddrive and a disk password
-archinstall.log(f"Minimal only supports:")
-archinstall.log(f" * Being installed to a single disk")
+archinstall.log("Minimal only supports:")
+archinstall.log(" * Being installed to a single disk")
if archinstall.arguments.get('help', None):
- archinstall.log(f" - Optional disk encryption via --!encryption-password=<password>")
- archinstall.log(f" - Optional filesystem type via --filesystem=<fs type>")
- archinstall.log(f" - Optional systemd network via --network")
+ archinstall.log(" - Optional disk encryption via --!encryption-password=<password>")
+ archinstall.log(" - Optional filesystem type via --filesystem=<fs type>")
+ archinstall.log(" - Optional systemd network via --network")
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.
@@ -32,13 +33,14 @@ def install_on(mountpoint):
# Once this is done, we output some useful information to the user
# And the installation is complete.
- archinstall.log(f"There are two new accounts in your installation after reboot:")
- archinstall.log(f" * root (password: airoot)")
- archinstall.log(f" * devel (password: devel)")
+ archinstall.log("There are two new accounts in your installation after reboot:")
+ archinstall.log(" * root (password: airoot)")
+ archinstall.log(" * 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')