#ZRAM setup with zram-init

1 messages · Page 1 of 1 (latest)

sterile path
#

How do i setup zram? i installed zram-init, but when i add it to boot level, it says

Adding zram-init to following runlevels
  boot                      [invalid]

after multiple restarts there is no /dev/zram0 or smth. Ofc i did simple configuration. What can i do?

noble crest
#

Are you using openrc?

sterile path
icy fulcrum
#

what is your config?

sterile path
sterile path
icy fulcrum
#

you only have it set to use one device

#

and you have a ton of uncommented stuff

#

i would comment everything but the config you need

sterile path
sterile path
icy fulcrum
#

can you share the whole output?

sterile path
#

yep

icy fulcrum
#

what is in /etc/runlevels.d?

sterile path
icy fulcrum
#

oh jhust runlevels

#

adding somethign to the boot runlevel really just means it symlinks the service fiel into thar dir

sterile path
#

should i just mkdir boot?

icy fulcrum
#

huh

#

i'd take a step back

#

how did you install?

#

that isn't right

sterile path
#

uhhh

#

took regular openrc-desktop stage3

#

and installed with handbook

#

had no issues

#

lemme check one thing rq

#

LMAO

#

when i started migrating to llvm profile, i selected llvm/systemd

#

but i need to setup zram if i want to update whole system

icy fulcrum
#

yeaaaa

#

that would cause problems lol

sterile path
# icy fulcrum yeaaaa

btw, handbook says about starting zram with /etc/init.d/zram-init start, but if i do that bash says "cannot execute: required file not found"

#

but, if i do modprobe zram num_devices=1 manually, zram device shows up

#

sudo swapon /dev/zram0 fails, "read swap header failed"

noble crest
#

So zram init isn't actually installed.

sterile path
noble crest
#

wgetpaste -c 'equery f sys-block/zram-init'

noble crest
#

Huh, odd. I'm going to suggest you file a bug I'm afraid.

#

Do other runlevels work?

sterile path
#

we found out that i used systemd tarball when was installing system

#

and i didnt even have openrc package

#

so rn im trying to fix everything

noble crest
#

Oh that might do it

#

Sort that out and see where you're at . 🙂