summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-30 07:12:32 +0200
committerGitHub <noreply@github.com>2020-04-30 07:12:32 +0200
commit703954960e0eeb981a037009c2445c3b5eafcdb4 (patch)
tree6eb823232f230b921bbb1694adb06f1f1f097ba1
parentb36f585f63a6c447164512ec3f6605a77b487185 (diff)
parentcae3b189acc5702fe52a3bd4e88bcb95343ccf05 (diff)
downloadvyatta-op-703954960e0eeb981a037009c2445c3b5eafcdb4.tar.gz
vyatta-op-703954960e0eeb981a037009c2445c3b5eafcdb4.zip
Merge pull request #37 from kroy-the-rabbit/patch-1
T2402: Warn user when configuring from live-ISO
-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