I managed to sort it out. Booted up the laptop without a hard drive, accessed BIOS settings, and then changed the boot order and disk controller.
Can't say I know which one of those actions solved it or why, but at this point I couldn't care less. Everything is now functioning as it should.