From 9bc46a3eb6053fcf9e2c87a087c7ee30c0025491 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Mon, 1 Nov 2021 10:08:53 +0000 Subject: Adding in enabling of zram service --- archinstall/lib/installer.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'archinstall/lib') 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") -- cgit v1.2.3-70-g09d2