From 3d006d519ca99b71096d0028a9190e43eaa35f86 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 27 Jun 2023 11:34:45 -0500 Subject: T5320: warn on entering config mode if boot config errors present --- op-mode-definitions/configure.xml.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/op-mode-definitions/configure.xml.in b/op-mode-definitions/configure.xml.in index 3dd5a0f45..a711fa4a9 100644 --- a/op-mode-definitions/configure.xml.in +++ b/op-mode-definitions/configure.xml.in @@ -11,7 +11,12 @@ echo "Please do it as an administrator level VyOS user instead." else if grep -q -e '^overlay.*/filesystem.squashfs' /proc/mounts; then - echo "WARNING: You are currently configuring a live-ISO environment, changes will not persist until installed" + echo "WARNING: You are currently configuring a live-ISO environment, changes will not persist until installed" + else + if grep -q -s '1' /tmp/vyos-config-status; then + echo "WARNING: There was a config error on boot: saving the configuration now could overwrite data." + echo "You may want to check and reload the boot config" + fi fi history -w export _OFR_CONFIGURE=ok -- cgit v1.2.3