Public bug reported:

The kernel uses "profile=2" in the bootloader command-line arguments to
indicate that the kernel should turn on instruction pointer profiling at
boot time.  This has existed for many years.

The readahead package uses 'profile' on the command-line to indicate
that it should do a boot-time profile of the boot sequence.

These scripts:

/etc/init.d/readahead
/etc/init.d/readahead-desktop

implement that with the following shell script lines:

/etc/init.d/readahead:  if ! grep -q "profile" /proc/cmdline; then
/etc/init.d/readahead-desktop:  if ! grep -q "profile" /proc/cmdline; then

the problem happens when grep, looking for "profile", finds "profile=2"
and returns true.  I would suggest changing those lines to something
like:

/etc/init.d/readahead:  if ! grep -q 'profile[^=]' /proc/cmdline; then
/etc/init.d/readahead-desktop:  if ! grep -q 'profile[^=]' /proc/cmdline; then

Or, perhaps using another argument or trigger.

** Affects: readahead (Ubuntu)
     Importance: Undecided
         Status: New

-- 
greps for 'profile' in /proc/cmdline falsely triggers on kernel profile= 
cmdline arg
https://bugs.launchpad.net/bugs/517230
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to