summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkroy-the-rabbit <kroy@kroy.io>2020-04-29 23:54:59 -0500
committerJohn Estabrook <jestabro@vyos.io>2020-05-06 08:58:46 -0500
commitd1963bb607f4dabd30f27340be6cb60005bf981e (patch)
tree36ed63f8c1fc0bc39e5ddd09672b814a7f11ddba
parente7360a55a6e61ed88d48a6b5831aa9e17559c94d (diff)
downloadvyatta-op-d1963bb607f4dabd30f27340be6cb60005bf981e.tar.gz
vyatta-op-d1963bb607f4dabd30f27340be6cb60005bf981e.zip
T2402: Warn user when configuring from live-ISO
(cherry picked from commit cae3b189acc5702fe52a3bd4e88bcb95343ccf05)
-rw-r--r--templates/configure/node.def3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/configure/node.def b/templates/configure/node.def
index 5f79a08..2e104c3 100644
--- a/templates/configure/node.def
+++ b/templates/configure/node.def
@@ -5,6 +5,9 @@ run: if [ `id -u` == 0 ]; then
echo "unusable until restart."
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"
+ fi
history -w
export _OFR_CONFIGURE=ok
newgrp vyattacfg