Method 1 : Fix very slow boot on Ubuntu to update GRUB so that it passes this option to the kernel automatically on boot:
Edit the file /etc/default/grub file so that the string noresume is included in the GRUB_CMDLINE_LINUX_DEFAULT line, for example:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash noresume"
Run this command to update GRUB: sudo update-grub
Edit /etc/systemd/system.conf with elevated privileges and change/add two lines that are commented by default from 90 seconds to 5 (or whatever you prefer) and uncomment it:
from:
#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s
to:
DefaultTimeoutStartSec=5s
DefaultTimeoutStopSec=5s
After that, apply the changes by rebuilding your initramfs with the command:
sudo update-initramfs -u