Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThomas <9749173+uhthomas@users.noreply.github.com>2022-01-20 17:49:18 +0000
committerGitHub <noreply@github.com>2022-01-20 17:49:18 +0000
commit34488d25c57d39745ab5127ab992adcdb1b97d80 (patch)
tree4edeb9e01803335cdf90d58f0daf7e4d63a2513b /examples
parent671bf7595c44633db60ce3e139fcc4ccda891325 (diff)
Disable zswap (#883)
Disable zswap when using zram. The swap device is now initialised before the bootloader, inline with the installation guide.
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/guided.py b/examples/guided.py
index ea07c454..723fa629 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -219,11 +219,11 @@ def perform_installation(mountpoint):
installation.set_hostname(archinstall.arguments['hostname'])
if archinstall.arguments['mirror-region'].get("mirrors", None) is not None:
installation.set_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors in the installation medium
+ if archinstall.arguments['swap']:
+ installation.setup_swap('zram')
if archinstall.arguments["bootloader"] == "grub-install" and archinstall.has_uefi():
installation.add_additional_packages("grub")
installation.add_bootloader(archinstall.arguments["bootloader"])
- if archinstall.arguments['swap']:
- installation.setup_swap('zram')
# If user selected to copy the current ISO network configuration
# Perform a copy of the config