BIOS menu appearing instead of booting

run first:
pacman -Sy

I ran it not in chroot and it did this

sudo pacman -Sy                                                                                                                                                                                                           ξ‚² 1 ✘ 
:: Synchronizing package databases...
 core                                                                                                             165.3 KiB   116 KiB/s 00:01 [#######################################################################################] 100%
 extra                                                                                                           1849.1 KiB  1238 KiB/s 00:01 [#######################################################################################] 100%
 community                                                                                                          7.1 MiB  1475 KiB/s 00:05 [#######################################################################################] 100%
 multilib                                                                                                         180.5 KiB   608 KiB/s 00:00 [#######################################################################################] 100%
 οŒ’ ξ‚°  ~ ξ‚° mhwd-kernel -li                                                                                                                                                                                                      ξ‚² βœ” ξ‚² 9s ο‰’ 
Currently running: 5.15.60-1-MANJARO (linux515)
The following kernels are installed in your system:
   * linux515

are you chrooted?

this was ran while I wasnt in manjaro-chroot -a

in chroot this is the message

οŒ’ ξ‚°  ~ ξ‚° manjaro-chroot -a                                                                                                                                                                                                       ξ‚² INT ✘ 
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
==> Mounting (ManjaroLinux) [/dev/sda5]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
[manjaro /]# sudo pacman -Sy 
Bus error
[manjaro /]# pacman -Sy
Bus error (core dumped)
[manjaro /]#

from chroot run this:
mhwd-kernel -li

chroot is this right ? manjaro-chroot -a

[manjaro /]# mhwd-kernel -li 
Currently running: 5.15.60-1-MANJARO (linux515)
The following kernels are installed in your system:
[manjaro /]#

so you dont have any kernel installed …
try installing the 510:
mhwd-kernel -i linux510
does this command gives you bus error?

not its a different errror

[manjaro /]# mhwd-kernel -i linux510
Error: Please make sure if the given kernel(s) exist(s).
available kernels:
[manjaro /]#

so its time to try this:

sudo sed -i 's/ trap/#trap/' /usr/lib/manjaro-tools/util-mount.sh
exit | manjaro-chroot -a
sudo pacman-mirrors -f5
sudo pacman --sysroot /mnt -Qqn | sudo pacman --sysroot /mnt -Syu -

run these commands one at a time, any errors post here

[manjaro /]# sudo sed -i 's/ trap/#trap/' /usr/lib/manjaro-tools/util-mount.sh
sed: can't read /usr/lib/manjaro-tools/util-mount.sh: No such file or directory

For this one, you have to exit chroot.

Is it supposed to do nothing?

If there is no output that doesn’t mean it did nothing.

 οŒ’ ξ‚°  ~ ξ‚° sudo sed -i 's/ trap/#trap/' /usr/lib/manjaro-tools/util-mount.sh                                                                                                                                                           ξ‚² βœ” 
 οŒ’ ξ‚°  ~ ξ‚° exit | manjaro-chroot -a                                                                                                                                                                                                    ξ‚² βœ” 
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
==> Mounting (ManjaroLinux) [/dev/sda5]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
 οŒ’ ξ‚°  ~ ξ‚° sudo pacman-mirrors -f5                                                                                                                                                                                             ξ‚² βœ” ξ‚² 11s ο‰’ 
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
  0.289 Ukraine        : http://mirrors.colocall.net/manjaro/
  1.158 Switzerland    : https://manjaro.osmir.ch/
  0.432 Poland         : https://repo.skni.umcs.pl/manjaro/
  0.182 MENA           : https://mirror.arvancloud.com/manjaro/
  2.886 Japan          : https://mirrors.xtom.jp/manjaro/
::INFO Writing mirror list
::MENA            : https://mirror.arvancloud.com/manjaro/stable
::Ukraine         : http://mirrors.colocall.net/manjaro/stable
::Poland          : https://repo.skni.umcs.pl/manjaro/stable
::Switzerland     : https://manjaro.osmir.ch/stable
::Japan           : https://mirrors.xtom.jp/manjaro/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
 οŒ’ ξ‚°  ~ ξ‚° sudo pacman                                                                                                                                                                                                          ξ‚² βœ” ξ‚² 6s ο‰’ 
error: no operation specified (use -h for help)
 οŒ’ ξ‚°  ~ ξ‚° sudo pacman --sysroot /mnt -Qqn | sudo pacman --sysroot /mnt -Syu -                                                                                                                                                       ξ‚² 1 ✘ 
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)
 οŒ’ ξ‚°  ~ ξ‚°

Run this now (outside of chroot):

pacman -r /mnt -b /mnt/var/lib/pacman --cachedir /mnt/var/cache/pacman/pkg --gpgdir /mnt/etc/pacman.d/gnupg -Syu linux519 pacman
οŒ’ ξ‚°  ~ ξ‚° pacman -r /mnt -b /mnt/var/lib/pacman --cachedir /mnt/var/cache/pacman/pkg --gpgdir /mnt/etc/pacman.d/gnupg -Syu linux519 pacman                                                                                        ξ‚² 0|1 ✘ 
error: you cannot perform this operation unless you are root.
 οŒ’ ξ‚°  ~ ξ‚° sudo pacman -r /mnt -b /mnt/var/lib/pacman --cachedir /mnt/var/cache/pacman/pkg --gpgdir /mnt/etc/pacman.d/gnupg -Syu linux519 pacman                                                                                     ξ‚² 1 ✘ 
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)
 οŒ’ ξ‚°  ~ ξ‚°

Show

lsblk
 οŒ’ ξ‚°  ~ ξ‚° lsblk                                                                                                                                                                                                                     ξ‚² 1 ✘ 
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0    7:0    0    21M  1 loop /run/miso/sfs/livefs
loop1    7:1    0 717.4M  1 loop /run/miso/sfs/mhwdfs
loop2    7:2    0   1.3G  1 loop /run/miso/sfs/desktopfs
loop3    7:3    0 645.3M  1 loop /run/miso/sfs/rootfs
sda      8:0    0 931.5G  0 disk 
β”œβ”€sda1   8:1    0  1000M  0 part 
β”œβ”€sda2   8:2    0   260M  0 part /mnt/boot/efi
β”œβ”€sda3   8:3    0   128M  0 part 
β”œβ”€sda4   8:4    0 781.4G  0 part 
β”œβ”€sda5   8:5    0 133.5G  0 part /mnt
└─sda6   8:6    0  15.3G  0 part 
sdb      8:16   1   7.2G  0 disk /run/miso/bootmnt
β”œβ”€sdb1   8:17   1   2.7G  0 part 
└─sdb2   8:18   1     4M  0 part 
sr0     11:0    1  1024M  0 rom  
 οŒ’ ξ‚°  ~ ξ‚°

Mkay.

rm /mnt/var/lib/pacman/db.lck

and redo one of previous commands.