Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/full_automated_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/full_automated_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/full_automated_installation.py')
-rw-r--r--examples/full_automated_installation.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/full_automated_installation.py b/examples/full_automated_installation.py
index a169dd50..dcef731a 100644
--- a/examples/full_automated_installation.py
+++ b/examples/full_automated_installation.py
@@ -1,9 +1,10 @@
from pathlib import Path
-from archinstall import Installer, ProfileConfiguration, profile_handler
+from archinstall import Installer
+from archinstall import profile
from archinstall.default_profiles.minimal import MinimalProfile
from archinstall import disk
-from archinstall.lib.models import User
+from archinstall import models
# we're creating a new ext4 filesystem installation
fs_type = disk.FilesystemType('ext4')
@@ -88,8 +89,8 @@ with Installer(
# Optionally, install a profile of choice.
# In this case, we install a minimal profile that is empty
-profile_config = ProfileConfiguration(MinimalProfile())
-profile_handler.install_profile_config(installation, profile_config)
+profile_config = profile.ProfileConfiguration(MinimalProfile())
+profile.profile_handler.install_profile_config(installation, profile_config)
-user = User('archinstall', 'password', True)
+user = models.User('archinstall', 'password', True)
installation.create_users(user)