mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-02 05:34:46 +00:00
package: assign proper value to redefined_string
Fixes: #2624 Signed-off-by: zhanghj <zhanghj.lc@inspur.com>
This commit is contained in:
parent
967db0cbcc
commit
d789b42937
@ -188,8 +188,8 @@ get_kernel_frag_path() {
|
|||||||
# when it reports an error or warning condition. We search for them in the
|
# when it reports an error or warning condition. We search for them in the
|
||||||
# output to try and fail when we think something has been misconfigured.
|
# output to try and fail when we think something has been misconfigured.
|
||||||
local not_in_string="not in final"
|
local not_in_string="not in final"
|
||||||
local redefined_string="not in final"
|
local redefined_string="redefined"
|
||||||
local redundant_string="not in final"
|
local redundant_string="redundant"
|
||||||
|
|
||||||
# Later, if we need to add kernel version specific subdirs in order to
|
# Later, if we need to add kernel version specific subdirs in order to
|
||||||
# handle specific cases, then add the path definition and search/list/cat
|
# handle specific cases, then add the path definition and search/list/cat
|
||||||
@ -247,7 +247,7 @@ get_kernel_frag_path() {
|
|||||||
# might be convenient to allow it, but for now, let's pick up on them.
|
# might be convenient to allow it, but for now, let's pick up on them.
|
||||||
local redundant=$(echo ${results} | grep -v -q "${redundant_string}"; echo $?)
|
local redundant=$(echo ${results} | grep -v -q "${redundant_string}"; echo $?)
|
||||||
if [ ${redundant} -ne 0 ]; then
|
if [ ${redundant} -ne 0 ]; then
|
||||||
info "Some CONFIG elements failed to make the final .config"
|
info "Some CONFIG elements are redundant in fragments:"
|
||||||
info "${results}"
|
info "${results}"
|
||||||
info "Generated config file can be found in ${config_path}"
|
info "Generated config file can be found in ${config_path}"
|
||||||
die "Failed to construct requested .config file"
|
die "Failed to construct requested .config file"
|
||||||
|
Loading…
Reference in New Issue
Block a user