Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
The two commands are: "set system image default-boot" and
"delete system image".
|
|
Added code to handle deletion of the default boot image. This now
succeeds so long as the default boot image is not the running image.
The running image still can not be deleted.
Correctly handle case where image being deleted resides before the
default boot image in the grub config file. Previously this would
either switch the default boot image to the one after it, or leave the
default pointing to a non-existant entry.
Added the Vyatta license.
Re-organized and added comments to make the code easier to maintain.
|
|
|
|
|
|
|
|
|
|
|