File /etc/modprobe.d/dummy.conf ignored on Ubuntu 18.04

With Ubuntu 16.04, I have the following file:

/etc/modprobe.d/dummy.conf

With the following content:

options dummy numdummies=12

And it works fine!

However, with Ubuntu 18.04, this isn't working anymore...

On Bionic, I have to manually run:

rmmod dummy
modprobe dummy numdummies=12

Then, it works!

So, how to do this automatically on Ubuntu 18.04 (new standard)?

Thanks!


In Ubuntu 18.04, in the file

/lib/modprobe.d/systemd.conf

comment or edit this line:

"options dummy numdummies=0"

Create an empty /etc/modprobe.d/systemd.conf file to override the /lib/modprobe.d/systemd.conf file that contains options dummy numdummies=0.