summaryrefslogtreecommitdiff
path: root/scripts/install/install-postinst-new
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-04-30 15:45:44 -0700
committerBob Gilligan <gilligan@vyatta.com>2010-04-30 15:45:44 -0700
commitc634b7d41c241a9b033e16ff32ba26a6d99bc227 (patch)
tree202b35528992e8fd22a66d33eb3b36085dfa0c21 /scripts/install/install-postinst-new
parentccbcc2939853cfc877970b3750a625d536fe219f (diff)
downloadvyatta-cfg-system-c634b7d41c241a9b033e16ff32ba26a6d99bc227.tar.gz
vyatta-cfg-system-c634b7d41c241a9b033e16ff32ba26a6d99bc227.zip
Allow user to name system images when installing them.
Now we ask the user what they would like to name an image when they are installing. The default answer is the same string used previously: The Vyatta version string.
Diffstat (limited to 'scripts/install/install-postinst-new')
-rwxr-xr-xscripts/install/install-postinst-new6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/install/install-postinst-new b/scripts/install/install-postinst-new
index 65c6cd7f..c96f5657 100755
--- a/scripts/install/install-postinst-new
+++ b/scripts/install/install-postinst-new
@@ -133,9 +133,13 @@ if [ -z "$version" ]; then
exit 1
fi
+array=( $WRITE_ROOT/boot/* )
+image_name=${array[0]}
+image_name=${image_name#$WRITE_ROOT/boot/}
+
# these are the defaults for "union"
grub_root=$WRITE_ROOT
-grub_setup_args="-u $version"
+grub_setup_args="-u $image_name"
if [ "$INSTALL_TYPE" == 'old' ]; then
grub_root=$INST_ROOT
grub_setup_args="-v $version"