On Thu, 2012-09-13 at 19:19 +0000, Amit wrote: > Hello, > > I am using debhelper 9.20120115 and would like some advice on bundling > /etc/modprobe.d/package.modprobe and /etc/modules. > > 1. I am currently using dh_installmodules to install package.modprobe. > However, I noticed that the automated debhelper commands in > postins/postrm don't run update-initramfs. Is updating initramfs not > necessary? That depends on what are you trying to do. > 2. I also need to specify module load order so I am bundling > /etc/modules. However, there doesn't seem to be a debhelper script > to handle /etc/modules. Don't ever touch /etc/modules, that's for the user/administrator. You can load modules from an init script if there is really no better way. > I searched the list archives and found conflicting arguments regarding > the use of update-initramfs after updating /etc/modules or > /etc/modprobe.d/. /etc/modules is used by the init scripts, not the initramfs. /etc/modprobe.d *does* get copied to the initramfs and I think you're right that update-initramfs should generally be called after it's updated. Perhaps initramfs-tools should have a file trigger for it, though. Ben. -- Ben Hutchings Make three consecutive correct guesses and you will be considered an expert.
Description: This is a digitally signed message part