Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-4851

mender-inventory-network error with busybox grep

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 2.7.1, 3.0.0, 3.0.0-report
    • Labels:
    • Environment:
      3.0.0-build2
    • Backlog:
      yes
    • Days in progress:
      0

      Description

      On a typical Beaglebone Black build with yocto, grep is provided by busybox and such version is incompatible with the flags we use in mender-inventory-network

      See snippet below

      root@beaglebone-yocto:~# /usr/share/mender/inventory/mender-inventory-network 
      grep: unrecognized option '--quiet'
      BusyBox v1.31.1 () multi-call binary.
      
      Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...
      mac_eth0=1c:ba:8c:a2:2b:01
      network_interfaces=eth0
      ipv4_eth0=192.168.0.40/24
      ipv6_eth0=fe80::1eba:8cff:fea2:2b01/64
      grep: unrecognized option '--quiet'
      BusyBox v1.31.1 () multi-call binary.
      
      Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...
      mac_sit0=00:00:00:00
      network_interfaces=sit0
      

        Attachments

          Activity

            People

            Assignee:
            lluis Lluís Campos
            Reporter:
            lluis Lluís Campos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support