[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to load a kernel module when packaging?



On Wed, Sep 15, 2021 at 05:57:36PM +0800, clay stan wrote:
> 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 file
> > > >[1] https://manpages.debian.org/unstable/systemd/modules-load.d.5.en.html
> > This 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?
> 
> loading the zram module when package installed is enough for me.

Please use /etc/modules which works everywhere instead of some NIH.

On the other hand, if you're doing a runtime check, please make sure
you accept built-in modules, eg by checking -d /sys/module/zswap rather
than /proc/modules.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ If you ponder doing what Jesus did, remember than flipping tables
⢿⡄⠘⠷⠚⠋⠀ and chasing people with a whip is a prime choice.
⠈⠳⣄⠀⠀⠀⠀


Reply to: