Linux has no way to determine where it booted from.
It is the boot loader's responsibility to load thew kernel and initrd, and then jump to the kernel start address.
The kernel does not know how that was done.
It is the boot loader's responsibility to load thew kernel and initrd, and then jump to the kernel start address.
The kernel does not know how that was done.