On Fri, Jan 04, 2013 at 02:10:55PM +0500, Saqlain Abbas wrote: > I have customized Ubuntu distribution, along with several customization i > have also changed distribution name, it works well. Currently I use this > cutomized distro rootfs with Linux kernel but whenever i do update-grub, > the auto-generated menu.lst file do have original distro name, My question > is grub read which file to determine distro name, as i want to customize it > completely.
The very old version of update-grub you're using hardcodes it, so you'd have to edit the update-grub script directly to fix this. More recent versions (anything from Ubuntu 7.10 onwards) pick up the title from lsb_release. > Sample snippet from auto-generated menu.lst file > > title Ubuntu, kernel 2.6.17-10-generic > root (hd0,4) > kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro quiet splash > initrd /boot/initrd.img-2.6.17-10-generic You are using a dangerously old version of Ubuntu; that looks like Ubuntu 6.10, which has been out of security support for nearly five years and by now is very likely to be full of vulnerabilities. Even the version of Ubuntu that fixed the bug of not using lsb_release here has itself been out of security support for nearly four years! You should upgrade to something very much newer at the earliest opportunity. Cheers, -- Colin Watson [cjwat...@ubuntu.com] -- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss