diff --git a/include/tests_boot_services b/include/tests_boot_services index 3b0d3a2e..274fd2d3 100644 --- a/include/tests_boot_services +++ b/include/tests_boot_services @@ -71,7 +71,7 @@ case ${OS} in "Linux") if [ -f /proc/1/cmdline ]; then - FILENAME=$(${AWKBINARY} '/(^\/|init)/ { print $1 }' /proc/1/cmdline | tr -d '\0') + FILENAME=$(${AWKBINARY} '/(^\/|init)/ { print $1 }' /proc/1/cmdline | ${TRBINARY} '\0' ' ' | ${SEDBINARY} 's/ $//' | ${AWKBINARY} '{ print $1 }') LogText "Result: cmdline found = ${FILENAME}" ISFILE=$(echo ${FILENAME} | ${GREPBINARY} "^/") if [ ! -z "${ISFILE}" ]; then