[syslinux] Append boot device to /proc/cmdline

Patrick Verner exodusrobot at yahoo.com
Thu Nov 26 09:55:24 PST 2009


Would it be possible to append the device syslinux booted from to /proc/cmdline? It would be nice to have a method of grepping /proc and /sys to locate the correct boot device for a LiveCD/USB instead of looking for it or manually appending it to the cfg file.

I'm the creator of Parted Magic and people are starting to do odd things with it. They will boot the CD and have Parted Magic on a USB drive or HDD too. The initramfs init script has noway of knowing what device the boot loader originated from, so it's almost impossible to determine what device or squashfs the user intended to use.

I would think syslinux is aware of what device it originated from and that value could be written to /proc/cdmline like the rest of the APPEND line is. The distribution creators could simply grep /proc/cmdline and find a way to match the bios named device to the name linux (udev) gives it.

Patrick


      




More information about the Syslinux mailing list