diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2010-04-30 15:45:44 -0700 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2010-04-30 15:45:44 -0700 |
commit | c634b7d41c241a9b033e16ff32ba26a6d99bc227 (patch) | |
tree | 202b35528992e8fd22a66d33eb3b36085dfa0c21 /scripts/install/install-postinst-new | |
parent | ccbcc2939853cfc877970b3750a625d536fe219f (diff) | |
download | vyatta-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-x | scripts/install/install-postinst-new | 6 |
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" |