Instead of hacking /usr/share/initramfs-tools/init, it's more elegant and robust to add the delay as a rootdelay boot parameter. E.g. edit /etc/default/grub as follows:
GRUB_CMDLINE_LINUX_DEFAULT="quiet rootdelay=10"
and run 'sudo update-grub'.
Instead of hacking /usr/share/ initramfs- tools/init, it's more elegant and robust to add the delay as a rootdelay boot parameter. E.g. edit /etc/default/grub as follows:
GRUB_CMDLINE_ LINUX_DEFAULT= "quiet rootdelay=10"
and run 'sudo update-grub'.