[syslinux] Recoginizng which boot agent was used

H. Peter Anvin hpa at zytor.com
Thu Jul 1 15:56:03 PDT 2004

George Vicherek wrote:
> Hi,
> Is there a way for init=/linuxrc to know which package (syslinux, 
> pxelinux, ...) was used for booting? What would be a reliable way to 
> detect if we booted via net or from a hdd/cdrom? Is there a variable 
> which gets initialized with the boot device?

The boot loader tells the kernel, but I don't think the kernel currently 
makes this information available to the userspace.  You can of course 
pass in something on the command line to tell you.


More information about the Syslinux mailing list