Thanks Colin for suggestions!

I have now used used Ubuntu 12.04 (I can see 12.10 also available but did
not give it a try) from https://wiki.ubuntu.com/Core I have modified rootfs
as per my requirements (incorporated my all scripts and customization
into into it, and is perfectly fine), I have modified  /etc/lsb-release,
but unfortunately still menu.lst generated through update-grub, contain
title as ubuntu. I suppose with this version update-grub should pick name
from lsb-release as you mentioned, or i am missing something else also? Or
you would suggest me to use 12.10, i want to avoid modifying update-grub,
the reason you mentioned it will pick from lsb-release, is there some other
files which i need to modify also? I have modified /etc/lsb-release,
/etc/os-release, /etc/issue, /var/run/motd etc

Thanks,
Saqlain.
On Fri, Jan 4, 2013 at 6:11 PM, Colin Watson <cjwat...@ubuntu.com> wrote:

> 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
>
-- 
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

Reply via email to