You _can_ get that information under Linux:
cat /proc/cmdline
The param 'BOOT_IMAGE=' contains the info you need.
When loaded with LILO its the name of the 'label' in /etc/lilo.conf,
when loaded with LOADLIN its the base name of the image file.
>
> Well, I'll CC: your message to the kernel hackers. Maybe someone has
> a good idea...
>
> Ulrich
Hans
<lermen@fgan.de>