summaryrefslogtreecommitdiff
path: root/scripts/install/install-image-existing
AgeCommit message (Collapse)Author
2010-03-08Use more reliable method for determining system version.Bob Gilligan
2010-03-08Bugfix 5360: Get name of image from correct source.Bob Gilligan
The name of a system image is supposed to match the Vyatta version string. Previously, the install-image script determined the name of the image being installed by parsing a field in the Vyatta version file on the image being installed. But the format of that file has changed, and may change again the future, so it is not a good source of the Vyatta version string. The most accurate way to determine the Vyatta version string is to look up the debian package version string associated with the vyatta-version package on the image being installed. This changes the install-image script to get the system image name that way. (cherry picked from commit e1864411c77e688b1b67de40441550b1f1eba055)
2010-01-25Bugfix 5240: Prevent re-installation of same version on running systemsBob Gilligan
Previously, it was possible in some cases to "add" a system image that would over-write the running image. This change fixes that by getting the version string of the running system from the kernel command line instead of the Vyatta version file. This string represents the actual directory name that holds the image, so is more reliable. Also previously, an attempt to "add" a system image that had the same version string as another image installed on the system (but was not the running image) would always succeed. This would completely over-write that image. Because of this destructive behavior, it deserves a confirmation question. This change prompts the user to see if they really want to do that before proceeding.
2009-11-06copy the whole config directory during installAn-Cheng Huang
2009-10-30add unified install-imageAn-Cheng Huang