Re: How to load a kernel module when packaging?

2021-09-15 Thread Adam Borowski
On Wed, Sep 15, 2021 at 05:57:36PM +0800, clay stan wrote: > Andrey Rahmatullin 于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-loa

Re: How to load a kernel module when packaging?

2021-09-15 Thread clay stan
Andrey Rahmatullin 于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. > > How can I implement it? > One option is documenting it in a README.Debian. > > > The wa

Re: How to load a kernel module when packaging?

2021-09-15 Thread Andrey Rahmatullin
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. > How can I implement it? One option is documenting it in a README.Debian. > The way I can think of is to use "modporbe -r zram" in postinst t

How to load a kernel module when packaging?

2021-09-15 Thread clay stan
Hey, I'm packaging a package. This package requires the kernel to load the zram module to use it. How can I implement it? The way I can think of is to use "modporbe -r zram" in postinst to load the module during installation, or add a module-load.d conf file >[1] https://manpages.debian.org/unsta