Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-4318

lbuild cannot find linux release if kernel source tree was given on the command line

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.6.0
    • None
    • None
    • 3
    • 11815

    Description

      For OFED and ZFS builds the function $(find_linux_release) is used. But it defined in $LBUILD_DIR/lbuild-$DISTRO that is not included in case of build when kernel source tree was given on the command line.

      # if an unpacked kernel source tree was given on the command line
      # just build lustre with it (nothing distro kernel specific here)
      if [ -n "$LINUX" ]; then
          build_ofed "${LINUXOBJ:-$LINUX}" "$OFED_VERSION" ||
              fatal 1 "error building OFED"
          build_lustre "$LINUX" "$LINUXOBJ"
      else
          if [ ! -f "${LBUILD_DIR}/lbuild-$DISTRO" ]; then
              fatal 1 "${LBUILD_DIR}/lbuild-$DISTRO not found"
          fi
          source ${LBUILD_DIR}/lbuild-$DISTRO
          build_with_srpm || fatal 1 "Failed to build_with_srpm"
      fi
      

      Attachments

        Activity

          People

            dmiter Dmitry Eremin (Inactive)
            dmiter Dmitry Eremin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: