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? Thanks, George I do not subscribe to the syslinux mailing list. Please reply to my e-mail.
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. -hpa