Public bug reported:

I have been using bootchart to detect hotspots in the boot process.

I have found that lsb_release takes up to 15 secs the first time it is
called (from kernel-helper -> update-grub). And around 5 seconds the
next time (called from jockey-gtk).

The first time it is only needed to set the titles for the entries in
the grub file menu.lst. I have changed /usr/sbin/update-grub as follows:

- title=$(lsb_release --short --description 2>/dev/null) || title="Ubuntu"
+ title=$(cat /etc/issue.net 2>/dev/null) || title="Ubuntu"

jockey uses it to get the distribution ID ("Ubuntu" in this case) and
its version ("8.10"). I have not found an easy way to fix this one. The
code is in "/usr/lib/python2.5/site-packages/jockey/oslib.py"

With the aforementioned change in update-grub I have shaved 5 seconds
off the boot time.

** Affects: ubuntu
     Importance: Undecided
         Status: New

** Affects: acpid (Debian)
     Importance: Unknown
         Status: Unknown

** Bug watch added: Debian Bug tracker #491388
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=491388

** Also affects: acpid (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=491388
   Importance: Unknown
       Status: Unknown

-- 
lsb_release takes a lot of time and is being used during the boot
https://bugs.launchpad.net/bugs/262050
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to