Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/only_hd_installation.py
diff options
context:
space:
mode:
authorDaniel Girtler <blackrabbit256@gmail.com>2023-05-12 02:30:09 +1000
committerGitHub <noreply@github.com>2023-05-11 18:30:09 +0200
commit89cefb9a1c7d4c4968e7d8645149078e601c9d1c (patch)
tree12c84bdcef1b0ef3f8a21977e25c7f0f89388138 /examples/only_hd_installation.py
parent6e6b850a8f687b193172aaa321d49bd2956c1d4f (diff)
Cleanup imports and unused code (#1801)
* Cleanup imports and unused code * Update build check * Keep deprecation exception * Simplify logging --------- Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'examples/only_hd_installation.py')
-rw-r--r--examples/only_hd_installation.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/only_hd_installation.py b/examples/only_hd_installation.py
index 2fc74bf0..075bde20 100644
--- a/examples/only_hd_installation.py
+++ b/examples/only_hd_installation.py
@@ -1,9 +1,7 @@
-import logging
from pathlib import Path
import archinstall
-from archinstall import Installer
-from archinstall.lib import disk
+from archinstall import Installer, disk, debug
def ask_user_questions():
@@ -48,7 +46,7 @@ def perform_installation(mountpoint: Path):
target.parent.mkdir(parents=True)
# For support reasons, we'll log the disk layout post installation (crash or no crash)
- archinstall.log(f"Disk states after installing: {disk.disk_layouts()}", level=logging.DEBUG)
+ debug(f"Disk states after installing: {disk.disk_layouts()}")
ask_user_questions()