Debugging of images with core dumps: improvements
- Four mounting of files, we need the absolute path. Even if the script gets relative paths, realpath will give the absolute path - Correctly recognize and handle gNB images with AW2S support
This commit is contained in:
@@ -10,9 +10,10 @@ die() {
|
||||
exit 1
|
||||
}
|
||||
|
||||
# for mounting into docker, need absolute path -> realpath
|
||||
IMAGE=$1
|
||||
COREDUMP=$2
|
||||
SOURCES=$3
|
||||
COREDUMP=$(realpath $2)
|
||||
SOURCES=$(realpath $3)
|
||||
|
||||
set -x
|
||||
|
||||
@@ -32,6 +33,9 @@ docker image inspect $IMAGE > /dev/null || exit 1
|
||||
if [ $(grep "oai-gnb:" <<< $IMAGE) ] || [ $(grep "oai-gnb-aerial:" <<< $IMAGE) ]; then
|
||||
EXEC=bin/nr-softmodem
|
||||
TYPEPATH=oai-gnb
|
||||
elif [ $(grep "oai-gnb-aw2s:" <<< $IMAGE) ]; then
|
||||
EXEC=bin/nr-softmodem
|
||||
TYPEPATH=oai-gnb-aw2s
|
||||
elif [ $(grep "oai-nr-ue:" <<< $IMAGE) ]; then
|
||||
EXEC=bin/nr-uesoftmodem
|
||||
TYPEPATH=oai-nr-ue
|
||||
|
||||
Reference in New Issue
Block a user