diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-06-28 11:32:51 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-06-28 11:32:51 -0500 |
commit | 296c15ab9819d01948f719cc09c1afd4e4265eca (patch) | |
tree | e181f18047c8f4148408121253d98ce42a339a4c /templates/clone | |
parent | 7047a00b552d83464a0a0e78285379098b75bf14 (diff) | |
download | vyatta-op-296c15ab9819d01948f719cc09c1afd4e4265eca.tar.gz vyatta-op-296c15ab9819d01948f719cc09c1afd4e4265eca.zip |
Add a disk-install uri for old disk based installs in image tools
Diffstat (limited to 'templates/clone')
-rw-r--r-- | templates/clone/system/config/node.tag/from/node.tag/node.def | 3 | ||||
-rw-r--r-- | templates/clone/system/config/node.tag/node.def | 1 |
2 files changed, 3 insertions, 1 deletions
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 42ef94e..6061efd 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 @@ -6,6 +6,9 @@ allowed: reply=( $(compgen -f /live/image/boot/ | grep -v grub) ) reply[$i]="${reply[$i]}://" done reply+=( "running://" ) + if [[ -d /live/image/config ]];then + reply+=( "disk-install://" ) + fi echo "${reply[*]}" run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; then diff --git a/templates/clone/system/config/node.tag/node.def b/templates/clone/system/config/node.tag/node.def index d54a4cf..d4a04c0 100644 --- a/templates/clone/system/config/node.tag/node.def +++ b/templates/clone/system/config/node.tag/node.def @@ -5,7 +5,6 @@ allowed: reply=( $(compgen -f /live/image/boot/ | grep -v grub) ) reply[$i]=${file/#\/live\/image\/boot\//} reply[$i]="${reply[$i]}://" done - reply+=( "running://" ) echo "${reply[*]}" run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; then |