From b005effc32d86eb68bf93e7dfdd0c127252e3a18 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 22 Aug 2018 16:33:50 +0200 Subject: [BOOT-5104] improved parsing parameters to init process --- include/tests_boot_services | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3