From 8ba7cc7af7d6d305b9e48ff2b2ce70f722994c71 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 28 Aug 2021 21:32:37 +0200 Subject: vyos-router: add debug possibilities Specifying vyos-debug on the Kernel commandline will enable additional debug featurs as the following temporary files are created so the boot process can be logged: * /tmp/vyos.ifconfig.debug * /tmp/vyos.frr.debug * /tmp/vyos.container.debug (cherry picked from commit 1c19c5d83797eaaff1976ce80374456cacdc9e6c) --- scripts/init/vyos-router | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/init/vyos-router b/scripts/init/vyos-router index 63797b7..ed71379 100755 --- a/scripts/init/vyos-router +++ b/scripts/init/vyos-router @@ -210,6 +210,14 @@ start () # the script by hand to have a single source for the login banner and MOTD ${vyos_conf_scripts_dir}/system_console.py || log_failure_msg "could not reset serial console" + # enable some debugging before loading the configuration + if grep -q vyos-debug /proc/cmdline; then + log_action_begin_msg "Enable runtime debugging options" + touch /tmp/vyos.ifconfig.debug + touch /tmp/vyos.frr.debug + touch /tmp/vyos.container.debug + fi + log_action_begin_msg "Mounting VyOS Config" # ensure the vyatta_configdir supports a large number of inodes since # the config hierarchy is often inode-bound (instead of size). -- cgit v1.2.3