summaryrefslogtreecommitdiff
path: root/templates/delete
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-01-25 15:42:48 -0800
committerBob Gilligan <gilligan@vyatta.com>2010-01-25 15:42:48 -0800
commit255541f16db12d5295cb81287021231096a42ab6 (patch)
treeccd849a45f95721cdd403474dd32df262460299d /templates/delete
parent232d94d3f92efdcb9f5e80ac77cfe5171b52adc9 (diff)
downloadvyatta-op-255541f16db12d5295cb81287021231096a42ab6.tar.gz
vyatta-op-255541f16db12d5295cb81287021231096a42ab6.zip
Bugfix 5238: Prevent the running image from being deleted
In order to prevent the running image from being deleted, we now get the image name of the running system from the kernel boot path given by /proc/cmdline. Since the menu of names of images to delete comes from the grub config file, this is guranteed to exactly match the grub entry that was used to boot. Also fix the help text for "delete system image" command.
Diffstat (limited to 'templates/delete')
-rw-r--r--templates/delete/system/image/node.tag/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/delete/system/image/node.tag/node.def b/templates/delete/system/image/node.tag/node.def
index 2c26bf4..403bd80 100644
--- a/templates/delete/system/image/node.tag/node.def
+++ b/templates/delete/system/image/node.tag/node.def
@@ -1,4 +1,4 @@
-help: Default boot image name
+help: Name of image image to delete
allowed:
local -a images ;