Avoid collecting dmesg when running as daemon

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas 2024-09-23 21:32:05 -04:00
parent 94df29b8f2
commit 1dc29b74b9
No known key found for this signature in database
GPG Key ID: 80D83A796103BF59

View File

@ -802,12 +802,14 @@ function wait_coredns_available(){
exit 1
fi
# bump log level
echo "6" | sudo tee /proc/sys/kernel/printk
if [[ "${ENABLE_DAEMON}" = false ]]; then
# bump log level
echo "6" | sudo tee /proc/sys/kernel/printk
# loop through and grab all things in dmesg
dmesg > "${LOG_DIR}/dmesg.log"
dmesg -w --human >> "${LOG_DIR}/dmesg.log" &
# loop through and grab all things in dmesg
dmesg > "${LOG_DIR}/dmesg.log"
dmesg -w --human >> "${LOG_DIR}/dmesg.log" &
fi
}
function start_kubelet {