Alexander! what you said perfectly make sense, i am going to do same right now :-), i am newbie and my purpose of doing all this is to understand and i agree with you, may be better way is to look at source...<br><br><div class="gmail_quote">
On Fri, Jan 4, 2013 at 10:36 PM, Alexandre Strube <span dir="ltr"><<a href="mailto:surak@ubuntu.com" target="_blank">surak@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Saqlain, <div><br></div><div>you know the saying: give a man a fish, he will eat for a day. Teach a man to fish....</div><div><br></div><div>The best thing of open source is that, well, you have the source. Inside the apt repository files, you can uncomment the source repositories, and, after an apt-get update, instead of downloading the binary, you can download the source. </div>

<div><br></div><div>Out of my memory, I suggest you download grub's source, find the source file(s) of the update-grub, and start by looking at simple functions that open files, such as fopen(), or for some strings (as some of these file names might be hardcoded), or just stroll around the code. You would be amazed at how much one is able to learn just by looking at some never-seen-before code (or horrified, depending on the case) - but in any case, you will learn WHILE having a mental challenge. </div>

<div><br></div><div>I sincerely hope this helps.</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/1/4 Saqlain Abbas <span dir="ltr"><<a href="mailto:saqlain.abbas.7@gmail.com" target="_blank">saqlain.abbas.7@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Thanks Colin for suggestions!<div><br></div><div>I have now used used Ubuntu 12.04 (I can see 12.10 also available but did not give it a try) from <a href="https://wiki.ubuntu.com/Core" target="_blank">https://wiki.ubuntu.com/Core</a> 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<div>


<br>Thanks,</div><div>Saqlain.<br><div class="gmail_quote">On Fri, Jan 4, 2013 at 6:11 PM, Colin Watson <span dir="ltr"><<a href="mailto:cjwatson@ubuntu.com" target="_blank">cjwatson@ubuntu.com</a>></span> wrote:<br>


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

</font></span></a></blockquote></div></div>
<br>--<br>
Ubuntu-devel-discuss mailing list<br>
<a href="mailto:Ubuntu-devel-discuss@lists.ubuntu.com">Ubuntu-devel-discuss@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Kind Regards,<div>Saqlain Abbas.</div>