On a #Linux system managed by systemd, its Journal feature manages the logs for everything from kernel to user level services. These logs can be accessed using the journalctl
command. The particular query of interest is to retrieve kernel logs from the time before current boot.