Design goals

  • Don’t overwrite global configuration files like /etc/initramfs-tools/initramfs.conf and similar as this can lead to problems like newer package versions trying to upgrade the file. /etc/initramfs-tools/conf.d and other *.d directories are preferred and used for this.
  • If additional kernel modules need to be loaded in the initramfs then this functionally should be added to the debops-contrib.kernel_module role. Note that all modules listed in /etc/initramfs-tools/modules are force loaded as can be read in /usr/sbin/mkinitramfs. An initramfs hook should be used instead of touching the /etc/initramfs-tools/modules file.