diff options
author | Daniil Baturin <daniil@vyos.io> | 2023-06-29 00:07:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-29 00:07:47 +0100 |
commit | 88282bed3b9a91f3a1cd645fee89fe38d8735de6 (patch) | |
tree | a700c12c209d310211aed8db02a3c7f4f356e819 /op-mode-definitions | |
parent | 6a2ddc478d61db6b177bd7ac49dcff0df9f69db8 (diff) | |
parent | 186d05c3c792ea1c61e8f0e68fd7006917244660 (diff) | |
download | vyos-1x-88282bed3b9a91f3a1cd645fee89fe38d8735de6.tar.gz vyos-1x-88282bed3b9a91f3a1cd645fee89fe38d8735de6.zip |
Merge pull request #2060 from jestabro/warning-boot-config-err
T5320: warn on entering config mode if boot config errors present
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/configure.xml.in | 7 |
1 files changed, 6 insertions, 1 deletions
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 |