diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-28 21:32:37 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-28 21:34:09 +0200 |
commit | 8ba7cc7af7d6d305b9e48ff2b2ce70f722994c71 (patch) | |
tree | cae417da711b9f7d2af861045c960ca595634307 | |
parent | 309432e44055cd03613af240aabf7818238d9faa (diff) | |
download | vyatta-cfg-8ba7cc7af7d6d305b9e48ff2b2ce70f722994c71.tar.gz vyatta-cfg-8ba7cc7af7d6d305b9e48ff2b2ce70f722994c71.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.ifconfig.debug
* /tmp/vyos.frr.debug
* /tmp/vyos.container.debug
(cherry picked from commit 1c19c5d83797eaaff1976ce80374456cacdc9e6c)
-rwxr-xr-x | scripts/init/vyos-router | 8 |
1 files changed, 8 insertions, 0 deletions
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). |