Running Ubuntu 18.04 LTS. I've put a script in the following location:
/usr/share/initramfs-tools/scripts/init-bottom/dothis
dothis is set as +x. I've run sudo update-initramfs -u which appears to update the initramfs contents just fine. I've looked at /boot/grub/grub.cfg and see the expected initrd file configured.
Running lsinitramfs on the file DOES show the script as having been added.
I cannot however find any evidence that dothis is being run on boot. As per documentation online, the root filesystem SHOULD be in place by the time the /init-bottom scripts are run, which should be the only thing required for my 'hello world' to work, as it outputs to a file on the root file system.
Is there some other step that needs to be done in order to get this script to run, or show whether it's being run? I've tried to simply output text to a file in /tmp but this is not showing up either.