[LU-4318] lbuild cannot find linux release if kernel source tree was given on the command line Created: 27/Nov/13  Updated: 13/Jan/14  Resolved: 13/Jan/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.6.0

Type: Bug Priority: Minor
Reporter: Dmitry Eremin (Inactive) Assignee: Dmitry Eremin (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 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


 Comments   
Comment by Dmitry Eremin (Inactive) [ 27/Nov/13 ]

The patch is http://review.whamcloud.com/8421

Comment by Brian Murrell (Inactive) [ 27/Nov/13 ]

Not surprising. This is a "historical" option that probably doesn't get much use at all.

Comment by Dmitry Eremin (Inactive) [ 13/Jan/14 ]

landed to master.

Generated at Sat Feb 10 01:41:38 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.