summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2016-02-08 12:27:08 -0500
committerKim Hagen <kim.sidney@gmail.com>2016-02-08 12:27:08 -0500
commit59240c87059fd207b3ec38238851f6fe6982e48c (patch)
treec308dcd9622c3f748bc2da542eff9328b4548f8c /templates
parentb4275461305f74798c7805ce2a5d25105e82caea (diff)
downloadvyatta-op-59240c87059fd207b3ec38238851f6fe6982e48c.tar.gz
vyatta-op-59240c87059fd207b3ec38238851f6fe6982e48c.zip
Update debian live mountpoint directories.
Diffstat (limited to 'templates')
-rw-r--r--templates/add/raid/node.tag/member/node.tag/node.def2
-rw-r--r--templates/clone/system/config/node.tag/from/node.tag/node.def6
-rw-r--r--templates/clone/system/config/node.tag/node.def4
-rw-r--r--templates/show/log/image/node.tag/all/node.def2
-rw-r--r--templates/show/log/image/node.tag/authorization/node.def2
-rw-r--r--templates/show/log/image/node.tag/directory/node.def4
-rw-r--r--templates/show/log/image/node.tag/file/node.tag/node.def4
-rw-r--r--templates/show/log/image/node.tag/node.def6
-rw-r--r--templates/show/log/image/node.tag/tail/node.def2
-rw-r--r--templates/show/log/image/node.tag/tail/node.tag/node.def2
10 files changed, 17 insertions, 17 deletions
diff --git a/templates/add/raid/node.tag/member/node.tag/node.def b/templates/add/raid/node.tag/member/node.tag/node.def
index b526e1e..14ac911 100644
--- a/templates/add/raid/node.tag/member/node.tag/node.def
+++ b/templates/add/raid/node.tag/member/node.tag/node.def
@@ -40,7 +40,7 @@ run:
mounted_on_root=0
mounted_on=`mount | grep "^/dev/${raid_set}" | awk '{ print $3 }'`
for dir in $mounted_on ; do
- if [ "$dir" = "/" -o "$dir" = "/live/image" ]; then
+ if [ "$dir" = "/" -o "$dir" = "/lib/live/mount/persistence" ]; then
mounted_on_root=1
fi
done
diff --git a/templates/clone/system/config/node.tag/from/node.tag/node.def b/templates/clone/system/config/node.tag/from/node.tag/node.def
index c244559..d883c8c 100644
--- a/templates/clone/system/config/node.tag/from/node.tag/node.def
+++ b/templates/clone/system/config/node.tag/from/node.tag/node.def
@@ -1,11 +1,11 @@
help: Image to update from
-allowed: reply=( $(compgen -d /live/image/boot/ | grep -v grub) )
+allowed: reply=( $(compgen -d /lib/live/mount/persistence/boot/ | grep -v grub) )
for i in `seq 0 $[${#reply[@]}-1]`; do
file=${reply[$i]}
- reply[$i]=${file/#\/live\/image\/boot\//}
+ reply[$i]=${file/#\/lib\/live\/mount\/persistence\/boot\//}
done
reply+=( "running" )
- if [[ -d /live/image/config ]];then
+ if [[ -d /lib/live/mount/persistence/config ]];then
reply+=( "disk-install" )
fi
echo "${reply[*]}"
diff --git a/templates/clone/system/config/node.tag/node.def b/templates/clone/system/config/node.tag/node.def
index 6e6e340..ec82322 100644
--- a/templates/clone/system/config/node.tag/node.def
+++ b/templates/clone/system/config/node.tag/node.def
@@ -1,8 +1,8 @@
help: Image to update
-allowed: reply=( $(compgen -d /live/image/boot/ | grep -v grub) )
+allowed: reply=( $(compgen -d /lib/live/mount/persistence/boot/ | grep -v grub) )
for i in `seq 0 $[${#reply[@]}-1]`; do
file=${reply[$i]}
- reply[$i]=${file/#\/live\/image\/boot\//}
+ reply[$i]=${file/#\/lib\/live\/mount\/persistence\/boot\//}
done
echo "${reply[*]}"
run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ];
diff --git a/templates/show/log/image/node.tag/all/node.def b/templates/show/log/image/node.tag/all/node.def
index eb3c87c..fd15df0 100644
--- a/templates/show/log/image/node.tag/all/node.def
+++ b/templates/show/log/image/node.tag/all/node.def
@@ -2,4 +2,4 @@ help: Show contents of all master log files for image
run: eval $(lesspipe)
less $_vyatta_less_options \
--prompt=".log?m, file %i of %m., page %dt of %D" \
- -- `printf "%s\n" /live/image/boot/$4/live-rw/var/log/messages* | sort -nr`
+ -- `printf "%s\n" /lib/live/mount/persistence/boot/$4/rw/var/log/messages* | sort -nr`
diff --git a/templates/show/log/image/node.tag/authorization/node.def b/templates/show/log/image/node.tag/authorization/node.def
index aec45cc..e7e3330 100644
--- a/templates/show/log/image/node.tag/authorization/node.def
+++ b/templates/show/log/image/node.tag/authorization/node.def
@@ -1,4 +1,4 @@
help: Show listing of authorization attempts for image
run: less $_vyatta_less_options \
--prompt=".log, page %dt of %D" \
- -- /live/image/boot/$4/live-rw/var/log/auth.log
+ -- /lib/live/mount/persistence/boot/$4/rw/var/log/auth.log
diff --git a/templates/show/log/image/node.tag/directory/node.def b/templates/show/log/image/node.tag/directory/node.def
index d9cb9cb..6d813cf 100644
--- a/templates/show/log/image/node.tag/directory/node.def
+++ b/templates/show/log/image/node.tag/directory/node.def
@@ -1,4 +1,4 @@
help: Show listing of user-defined log files for image
-run: if [ -d /live/image/boot/$4/live-rw/var/log/user ]
- then ls /live/image/boot/$4/live-rw/var/log/user
+run: if [ -d /lib/live/mount/persistence/boot/$4/rw/var/log/user ]
+ then ls /lib/live/mount/persistence/boot/$4/rw/var/log/user
fi
diff --git a/templates/show/log/image/node.tag/file/node.tag/node.def b/templates/show/log/image/node.tag/file/node.tag/node.def
index f347a86..5f6bb18 100644
--- a/templates/show/log/image/node.tag/file/node.tag/node.def
+++ b/templates/show/log/image/node.tag/file/node.tag/node.def
@@ -1,7 +1,7 @@
help: Show contents of specified user-defined log file for image
allowed: local -a array ;
- array=( /live/image/boot/${COMP_WORDS[3]}/live-rw/var/log/user/* ) ;
+ array=( /lib/live/mount/persistence/boot/${COMP_WORDS[3]}/rw/var/log/user/* ) ;
[ ${#array[@]} -gt 0 ] && echo -n ${array[@]##*/} || echo -n none
run: less $_vyatta_less_options \
--prompt=".$4 log, page %dt of %D" \
- -- /live/image/boot/$4/live-rw/var/log/user/$6
+ -- /lib/live/mount/persistence/boot/$4/rw/var/log/user/$6
diff --git a/templates/show/log/image/node.tag/node.def b/templates/show/log/image/node.tag/node.def
index daeb44e..05e7d01 100644
--- a/templates/show/log/image/node.tag/node.def
+++ b/templates/show/log/image/node.tag/node.def
@@ -1,11 +1,11 @@
help: Show contents of master log file for image
-allowed: reply=( $(compgen -f /live/image/boot/ | grep -v grub) )
+allowed: reply=( $(compgen -f /lib/live/mount/persistence/boot/ | grep -v grub) )
for i in `seq 0 $[${#reply[@]}-1]`; do
file=${reply[$i]}
- reply[$i]=${file/#\/live\/image\/boot\//}
+ reply[$i]=${file/#\/lib\/live\/mount\/persistence\/boot\//}
done
echo "${reply[*]}"
run: less $_vyatta_less_options \
--prompt=".log, page %dt of %D" \
- -- /live/image/boot/$4/live-rw/var/log/messages
+ -- /lib/live/mount/persistence/boot/$4/rw/var/log/messages
diff --git a/templates/show/log/image/node.tag/tail/node.def b/templates/show/log/image/node.tag/tail/node.def
index c7f0190..090eae4 100644
--- a/templates/show/log/image/node.tag/tail/node.def
+++ b/templates/show/log/image/node.tag/tail/node.def
@@ -1,2 +1,2 @@
help: Show last lines of messages file
-run: tail /live/image/boot/$4/live-rw/var/log/messages
+run: tail /lib/live/mount/persistence/boot/$4/rw/var/log/messages
diff --git a/templates/show/log/image/node.tag/tail/node.tag/node.def b/templates/show/log/image/node.tag/tail/node.tag/node.def
index f0af559..2c3eb14 100644
--- a/templates/show/log/image/node.tag/tail/node.tag/node.def
+++ b/templates/show/log/image/node.tag/tail/node.tag/node.def
@@ -1,3 +1,3 @@
help: Show last changes to messages
allowed: echo -n '<NUMBER>'
-run: tail -n "$6" /live/image/boot/$4/live-rw/var/log/messages | ${VYATTA_PAGER:-cat}
+run: tail -n "$6" /lib/live/mount/persistence/boot/$4/rw/var/log/messages | ${VYATTA_PAGER:-cat}