Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-06-10 21:00:33 +0200
committerAnton Hvornum <anton@hvornum.se>2021-06-10 21:00:33 +0200
commit0a8c061ab405e244a187b4615654ecca2e538156 (patch)
tree5f4da9a061c840f5a95a469074bcaf16a8afee61 /examples
parentadae29c205140da16132d318876ccb278a166e37 (diff)
Fixed format detection on commands, should be using exit codes instead?
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 2e2d0d98..527fc67c 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -223,7 +223,6 @@ def perform_filesystem_operations():
for drive in archinstall.arguments['harddrives']:
with archinstall.Filesystem(drive, mode) as fs:
fs.load_layout(archinstall.storage['disk_layouts'][drive])
- fs.mount_ordered_layout(archinstall.storage['disk_layouts'][drive])
perform_installation(archinstall.storage.get('MOUNT_POINT', '/mnt'))
@@ -234,7 +233,14 @@ def perform_installation(mountpoint):
Only requirement is that the block devices are
formatted and setup prior to entering this function.
"""
+
+
with archinstall.Installer(mountpoint, kernels=archinstall.arguments.get('kernels', 'linux')) as installation:
+ # Mount all the drives to the desired mountpoint
+ # This *can* be done outside of the installation, but the installer can deal with it.
+ for drive in archinstall.arguments['harddrives']:
+ installation.mount_ordered_layout(archinstall.storage['disk_layouts'][drive])
+
# if len(mirrors):
# Certain services might be running that affects the system during installation.
# Currently, only one such service is "reflector.service" which updates /etc/pacman.d/mirrorlist