aboutgitcode
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-05-10 18:09:59 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-05-10 18:09:59 +0200
commite83b5f0a52b0a704a95367d73c4ca617c23f13b2 (patch)
treeced9d1b7986c0a8c2ace46d5ac9f11a2a7e4c5f7
parentdf100318909313694b45ee00983c014b2fd3bbeb (diff)
downloadmbuto-e83b5f0a52b0a704a95367d73c4ca617c23f13b2.tar
mbuto-e83b5f0a52b0a704a95367d73c4ca617c23f13b2.tar.gz
mbuto-e83b5f0a52b0a704a95367d73c4ca617c23f13b2.tar.bz2
mbuto-e83b5f0a52b0a704a95367d73c4ca617c23f13b2.tar.lz
mbuto-e83b5f0a52b0a704a95367d73c4ca617c23f13b2.tar.xz
mbuto-e83b5f0a52b0a704a95367d73c4ca617c23f13b2.tar.zst
mbuto-e83b5f0a52b0a704a95367d73c4ca617c23f13b2.zip
mbuto: Don't strip kernel modules on -d, avoid variable name clash
The kselftests profile shouldn't strip modules if the -d flag is passed. While at it, rename STRIP (set to 'n' if stripping is disabled) to NOSTRIP (set to 'y' if stripping is disabled), to avoid a name clash with the variable holding the 'strip' command path. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rwxr-xr-xmbuto6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbuto b/mbuto
index b4a7cc0..0e8aa79 100755
--- a/mbuto
+++ b/mbuto
@@ -257,7 +257,7 @@ profile_kselftests() {
KMODS="$(${FIND} "${MODDIR}" ${__find_pattern} | ${TR} '\n' ' ')"
- workers kmod_strip_worker
+ [ "${NOSTRIP}" != "y" ] && workers kmod_strip_worker
KMODS="$(${BASENAME} -a -s .ko ${KMODS})"
@@ -1079,7 +1079,7 @@ cmds() {
add "${arg}"
done
- [ "${STRIP}" != "n" ] && strip_all
+ [ "${NOSTRIP}" != "y" ] && strip_all
if [ -z "${ARCHIVEMOUNT}" ]; then
( __out="$("${REALPATH}" "${OUT}")"
@@ -1197,7 +1197,7 @@ fi
while getopts :c:df:k:m:p:s:vh __opt; do
case ${__opt} in
c) COMPRESS="${OPTARG}" ;;
- d) STRIP="n" ;;
+ d) NOSTRIP="y" ;;
f) OUT="${OPTARG}" ;;
k) KERNEL="${OPTARG}" ;;
m) MODDIR="${OPTARG}" ;;