Adding in enabling of zram service
This commit is contained in:
parent
b4eb8557f5
commit
9bc46a3eb6
|
|
@ -450,6 +450,9 @@ class Installer:
|
||||||
self.pacstrap('zram-generator')
|
self.pacstrap('zram-generator')
|
||||||
zram_example_location = '/usr/share/doc/zram-generator/zram-generator.conf.example'
|
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")
|
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:
|
else:
|
||||||
raise ValueError(f"Archinstall currently only supports setting up swap on zram")
|
raise ValueError(f"Archinstall currently only supports setting up swap on zram")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue