It is a bit easier to edit /usr/share/initramfs-tools/init
and the do a :
dpkg-reconfigure linux-image-$(uname -r)