uses "grep -w" which is not implemented in busybox

Bug #359915 reported by Loïc Minier
2
Affects Status Importance Assigned to Milestone
hw-detect (Ubuntu)
Fix Released
Low
Colin Watson

Bug Description

Hi

While trying to install the versatile netboot images with encrypted LVM (failed) and with LVM (failed) I checked the log for errors and saw:
...
Apr 12 ... main-menu[464]: (process:5749): grep: invalid option -- 'w'
Apr 12 ... main-menu[464]: (process:5749): BusyBox v1.10.2 (Ubuntu 1:1.10.2-2ubuntu7) multi-call binary
Apr 12 ... main-menu[464]: (process:5749):
Apr 12 ... main-menu[464]: (process:5749): Usage: grep [-HhrilLnqvsoeFE] PATTERN [FILEs...]

I don't know what file has this grep -w, so didn't want to report against 'main-menu' (I found no grep call in main-menu itself, hence the report against debian-installer.)

Bye

Revision history for this message
Colin Watson (cjwatson) wrote :

Please attach the full syslog so that I can see from context where this might be.

Changed in debian-installer (Ubuntu):
status: New → Incomplete
Revision history for this message
Loïc Minier (lool) wrote :
Revision history for this message
Loïc Minier (lool) wrote :
Revision history for this message
Loïc Minier (lool) wrote :
Changed in debian-installer (Ubuntu):
status: Incomplete → New
Revision history for this message
Colin Watson (cjwatson) wrote :

It's your code :-)

       if grep -qw '^Features.* vfp' /proc/cpuinfo; then

I've committed a fix. Since libc6-vfp is in ubuntu-minimal on armel, though, this is purely cosmetic and there's no need to worry about getting this in for 9.04.

affects: debian-installer (Ubuntu) → hw-detect (Ubuntu)
Changed in hw-detect (Ubuntu):
importance: Undecided → Low
status: New → Triaged
assignee: nobody → Colin Watson (cjwatson)
status: Triaged → Fix Committed
Revision history for this message
Loïc Minier (lool) wrote :

Haha, thanks :)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hw-detect - 1.72ubuntu1

---------------
hw-detect (1.72ubuntu1) karmic; urgency=low

  * Resynchronise with Debian. Remaining changes:
    - Remove FireWire Ethernet support.
    - Register lp module on i386 and amd64.
    - Exit zero if you continue all the way through ethdetect's errors about
      having no network interfaces.
    - Register rtc module on amd64.
    - Drop priorities of a couple of ethdetect questions to medium.
    - Install mouseemu on systems likely to have single-button mice (i.e.
      Macs), but not powerpc64 since that causes an oops in the input layer.
    - On powerpc/ps3 systems, load ps3rom, ps3disk, and ps3_gelic, and add
      snd_ps3 to /etc/modules.
    - Install elfspe2 on Cell (powerpc/ps3 and powerpc/cell) platforms.
    - Add hooks for iSCSI support.
    - disk-detect.sh: Do not check the kernel command line for any option
      to enable dmraid support. If functional dmraid arrays are found, the
      user will be asked if they wish to activate them.
    - Make dmraid logging a bit neater.
    - 'dmraid -c -s' changed its output format; cope with both old and new.
    - Reinstate snd-powermac for i2s-a devices since apparently the lock-up
      has been fixed.
    - Remove dm-emc from the multipath modules, since it's gone since
      2.6.27.
    - Improve checks for dm-* drivers being present to avoid relying on them
      being built as modules.
    - Install libc6-vfp on armel systems where the vfp word is found in the
      /proc/cpuinfo features.
  * Don't use 'grep -w' in VFP-detection code, since busybox doesn't
    implement it (LP: #359915).

hw-detect (1.72) unstable; urgency=low

  [ Colin Watson ]
  * Ask the correct parameters question if modprobe fails.
  * Cope with dm-mod being built-in (e.g. custom kernels).
  * Merge from Ubuntu:
    - Check dmraid's exit code rather than parsing its output.
    - Use 'update-dev --settle' rather than 'update-dev' after loading
      modules (although not after installing new module packages, which may
      still require a trigger). Requires di-utils 1.66.
    - Activate only non-degraded dmraid arrays (thanks, Luke Yelavich;
      closes: #499482).

  [ Frans Pop ]
  * Install usbutils based on presence of /sys/bus/usb.

  [ Javier Fernández-Sanguino Peña ]
  * Fix Spanish translation. Closes: #510304

  [ Frans Pop ]
  * Remove myself as uploader.
  * Move hook scripts to directories to simplify including them.
  * hppa: starting with kernel 2.6.29 modules for devices on the parisc bus
    should be loaded automatically.

 -- Colin Watson <email address hidden> Tue, 02 Jun 2009 17:14:06 +0100

Changed in hw-detect (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.