Page MenuHomeVyOS Platform

Add warning message for unsaved changes in the dialog before initiating an upgrade
Closed, ResolvedPublicFEATURE REQUEST

Description

Summary

Need to add a warning message for the unsaved changes in the dialog box before proceeding with the upgrade process.

Use case

In case an user forgets to save the changes and proceeds with the upgrade then the previous changes are not stored after the upgrade. While running the reboot command in the end of the process it shows that there unsaved changes but saving at this step will not retain post reboot and the upgrade process has to re-executed by deleting the running image.

vyos@vyos02:~$ add system image vyos-1.4.2-generic-amd64.iso
Validating image compatibility
Validating image checksums
What would you like to name this image? (Default: 1.4.2)
Would you like to set the new image as the default one for boot? [Y/n] Y
An active configuration was found. Would you like to copy it to the new image? [Y/n] Y
Copying configuration directory
Would you like to copy SSH host keys? [Y/n] Y
Copying SSH host keys
Copying system image files
Cleaning up
Unmounting target filesystems
Removing temporary files
vyos@vyos02:~$
vyos@vyos02:~$ reboot
Warning: there are unsaved configuration changes!
Run 'save' command if you do not want to lose those changes after reboot/shutdown.
Are you sure you want to reboot this system (ISDDMZFWA)? [y/N]

Note: Here the hostname was modified.

Details

Version
-
Is it a breaking change?
Perfectly compatible
Issue type
Feature (new functionality)

Event Timeline

Viacheslav triaged this task as Normal priority.Apr 4 2025, 2:17 PM
Viacheslav added a project: VyOS Rolling.
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.