Boot device not recognized after installation (Next steps?)

I had a problem with starting qubes after installation, I solved it with the following commands:

mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/efi
cp /mnt/efi/EFI/qubes/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi
cp /mnt/efi/EFI/qubes/grub.cfg /mnt/efi/EFI/boot/bootx64.cfg
efibootmgr -v -c -u -L "TheEnemy1" -l /EFI/boot/bootx64.efi -d /dev/sda -p 1
reboot

thanks to @51lieal for the solution

Actually now I have a question, namely, what should I do after updating the kernel or editing kernel parameters, how can I update these files?
As far as I understand, after adding kernel options to /etc/default/grub I need to:

  1. grub2-mkconfig -o /boot/efi/EFI/qubes/grub.cfg
  2. manually update bootx64.cfg and bootx64.efi in the same way
    And when updating the kernel:
  3. manually update bootx64.cfg and bootx64.efi in the same way

And actually in what other situations do I need to update these files?