[Unit] Description=Automatic zram After=systemd-modules-load.service Before=swap.target [Service] Type=oneshot ExecStart=/lib/zram RemainAfterExit=yes [Install] WantedBy=swap.target