Problem:
Linux booting and taking a long time while looping with the script:
/scripts/local-block

Reason:
Linux boot needs to know the UUID of the Swap file it tries to mount.

Solution:
Run the command:
blkid
and get the UUID of the Swap file.
Run the command:
nano /etc/initramfs-tools/conf.d/resume
This file doesn’t exist. It will then be created.
Add the following line as follows(example of UUID):
RESUME=UUID=4b7ead25-e0d9-4064-bfa3-167ac46ada3f
Save the file
Run the following command:
update-initramfs -u
Reboot.