On Wed, Sep 15, 2021 at 05:26:42PM +0800, clay stan wrote:
I'm packaging a package. This package requires the kernel to load theOne option is documenting it in a README.Debian.
zram module to use it.
How can I implement it?
The way I can think of is to use "modporbe -r zram" in postinst toI don't think this is a good idea. Also modprobe only works until a
load the module during installation,
reboot. Also -r is "unload".
or add a module-load.d conf fileThis can work, and I see a lot of packages in Debian already doing this,
[1] https://manpages.debian.org/unstable/systemd/modules-load.d.5.en.html
but is loading the zram module enough for you or do you also need some configuration for it?
--
WBR, wRAR
[1] https://manpages.debian.org/unstable/systemd/modules-load.d.5.en.html
I'm packaging a package. This package requires the kernel to load theOne option is documenting it in a README.Debian.
zram module to use it.
How can I implement it?
The way I can think of is to use "modporbe -r zram" in postinst toI don't think this is a good idea. Also modprobe only works until a
load the module during installation,
or add a module-load.d conf fileThis can work, and I see a lot of packages in Debian already doing this,
[1] https://manpages.debian.org/unstable/systemd/modules-load.d.5.en.html
Andrey Rahmatullin <wrar@debian.org> 于2021年9月15日周三 下午5:47写道:
On Wed, Sep 15, 2021 at 05:26:42PM +0800, clay stan wrote:
I'm packaging a package. This package requires the kernel to load the zram module to use it.
or add a module-load.d conf fileThis can work, and I see a lot of packages in Debian already doing this, but is loading the zram module enough for you or do you also need some configuration for it?
[1] https://manpages.debian.org/unstable/systemd/modules-load.d.5.en.html
loading the zram module when package installed is enough for me.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 44:45:47 |
Calls: | 6,648 |
Files: | 12,197 |
Messages: | 5,329,717 |