Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-11-01 10:08:53 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2021-11-01 10:08:53 +0000
commit9bc46a3eb6053fcf9e2c87a087c7ee30c0025491 (patch)
tree8ea0982278db4272d5066961fddac5f123f4c9bc /archinstall/lib
parentb4eb8557f5ab4ced63cae061875cf6080f0ab7cd (diff)
Adding in enabling of zram service
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/installer.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index f83e0128..9de66215 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -450,6 +450,9 @@ class Installer:
self.pacstrap('zram-generator')
zram_example_location = '/usr/share/doc/zram-generator/zram-generator.conf.example'
shutil.copy2(f"{self.target}{zram_example_location}", f"{self.target}/usr/lib/systemd/zram-generator.conf")
+
+ if self.enable_service('systemd-zram-setup@zram0.service') and self.enable_service('systemd-zram-setup@zram1.service'):
+ return True
else:
raise ValueError(f"Archinstall currently only supports setting up swap on zram")