Skip to content

Commit

Permalink
Merge pull request #21 from guiguid/master
Browse files Browse the repository at this point in the history
Archlinux support - Post installation documentation update
  • Loading branch information
vaeth committed Aug 31, 2019
2 parents e8c4089 + 11664d7 commit a985d00
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,29 @@ For systemd and optionally also for openrc the content of `modprobe.d`
should go into `/lib/modprobe.d` or `/etc/modprobe.d` and be modified
appropriately.

To install on Arch based distribution : install `zram-init-git` from AUR

Once installed, configure :
`sudo cp /usr/lib/systemd/system/zram* /etc/systemd/system/`

- Lets make your configuration tweaks in
`/etc/modprobe.d/zram.conf`
`/etc/systemd/system/zram_swap.service`
`/etc/systemd/system/zram_tmp.service`
`/etc/systemd/system/zram_var_tmp.service`

- start
`sudo systemctl start zram_swap.service`
`sudo systemctl start zram_tmp.service`
`sudo systemctl start zram_var_tmp.service`

- and finaly enable
`sudo systemctl enable zram_swap.service`
`sudo systemctl enable zram_tmp.service`
`sudo systemctl enable zram_var_tmp.service`

Optional remove any swap references in `/etc/fstab`

To use `LZ4` compression with zram your kernel needs to be compiled with
a corresponding options. Depending on your kernel version this might be

Expand Down

0 comments on commit a985d00

Please sign in to comment.