summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-28 21:32:37 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-28 21:33:01 +0200
commit1c19c5d83797eaaff1976ce80374456cacdc9e6c (patch)
tree5901018c4c70a3e671475c19cf7a89bc6500ed43
parent242f5685159f615ff79312041d3dde2063e5579a (diff)
downloadvyatta-cfg-1c19c5d83797eaaff1976ce80374456cacdc9e6c.tar.gz
vyatta-cfg-1c19c5d83797eaaff1976ce80374456cacdc9e6c.zip
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
-rwxr-xr-xscripts/init/vyos-router9
1 files changed, 9 insertions, 0 deletions
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).