This unit is provided by:
Options
-
[Service]-
EnvironmentFile=-/usr/lib/zram.conf.d/%i -
ExecStart=-/bin/sh -c 'if [ -n "$ZRAM_NUM_STR" ]; then echo "$ZRAM_NUM_STR" > /sys/class/block/%i/max_comp_streams; fi' -/bin/sh -c 'if [ -n "$ZRAM_DEV_SIZE" ]; then echo "$ZRAM_DEV_SIZE" > /sys/class/block/%i/disksize; fi' -/bin/sh -c 'if [ "$SWAP" = "y" ]; then mkswap /dev/%i && swapon /dev/%i; fi' -
ProtectHostnameIntroduced in systemd 242=yes -
RemainAfterExit=no -
RestrictRealtimeIntroduced in systemd 231=yes -
Type=oneshot
-
-
[Unit]-
After=dev-%i.device -
Description=UDisks2 managed ZRAM device %i setup -
Requires=dev-%i.device
-
Additionnal notes
Nothing here.