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:
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)