From cae3b189acc5702fe52a3bd4e88bcb95343ccf05 Mon Sep 17 00:00:00 2001 From: kroy-the-rabbit Date: Wed, 29 Apr 2020 23:54:59 -0500 Subject: T2402: Warn user when configuring from live-ISO --- templates/configure/node.def | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates') 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 -- cgit v1.2.3