mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
Merge pull request #127582 from dims/avoid-collecting-dmesg-when-running-as-daemon
Avoid collecting dmesg when running as daemon
This commit is contained in:
commit
4851ea85e0
@ -802,12 +802,14 @@ function wait_coredns_available(){
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# bump log level
|
if [[ "${ENABLE_DAEMON}" = false ]]; then
|
||||||
echo "6" | sudo tee /proc/sys/kernel/printk
|
# bump log level
|
||||||
|
echo "6" | sudo tee /proc/sys/kernel/printk
|
||||||
|
|
||||||
# loop through and grab all things in dmesg
|
# loop through and grab all things in dmesg
|
||||||
dmesg > "${LOG_DIR}/dmesg.log"
|
dmesg > "${LOG_DIR}/dmesg.log"
|
||||||
dmesg -w --human >> "${LOG_DIR}/dmesg.log" &
|
dmesg -w --human >> "${LOG_DIR}/dmesg.log" &
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function start_kubelet {
|
function start_kubelet {
|
||||||
|
Loading…
Reference in New Issue
Block a user