XanMod Kernel Boot stuck

I built the xanmod kernel from the aur. It built successfully without errors.
Upon booting, it loads the kernel, but gets stuck at an emergency shell.
The error →

Starting version 240.x ERROR: device ‘UUID=xxx-…’ not found. Skipping fsck.
mount: /new_root: can’t find UUID=xxx…
You are now being dropped into an emergency shell.
sh: can’t access tty; job control turned off

How do I fix this? I am able to boot into the default kernel.

Verify all UUIDs are correct in /etc/fstab and if you have a RESUME entry in your /etc/grub/default ensure that is correct (and if not, regenerate the GRUB config).

Alternatively, the kernel you built simply doesn’t work.

The UUID’s are correct. So I guess it’s another issue. When I try to exit from rootfs, I get a kernel panic

You could try a pre-built kernel from Chaotic-AUR?

I tried that first, but the checksums were wrong.