From 1c19c5d83797eaaff1976ce80374456cacdc9e6c 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.container.debug * /tmp/vyos.ifconfig.debug * /tmp/vyos.frr.debug * /tmp/vyos.container.debug --- scripts/init/vyos-router | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/init/vyos-router b/scripts/init/vyos-router index 4040fe0..4aa408b 100755 --- a/scripts/init/vyos-router +++ b/scripts/init/vyos-router @@ -288,6 +288,15 @@ start () clear_or_override_config_files || log_failure_msg "could not reset config files" + # 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.container.debug + 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