Fixed newline in zram conf

This commit is contained in:
Anton Hvornum 2021-11-05 22:09:51 +01:00
parent dbe8ce9982
commit e29f440c0b
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 1 additions and 1 deletions

View File

@ -472,7 +472,7 @@ class Installer:
# 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")
with open(f"{self.target}/usr/lib/systemd/zram-generator.conf", "w") as zram_conf:
zram_conf.write("[zram0]")
zram_conf.write("[zram0]\n")
if self.enable_service('systemd-zram-setup@zram0.service'):
return True