update config to support more vhd features down the road

This commit is contained in:
DaneEveritt
2022-10-29 12:40:49 -07:00
parent 99cb61a6ef
commit ff4b7655c8
6 changed files with 41 additions and 13 deletions

View File

@@ -46,8 +46,8 @@ func newMigrateVHDCommand() *cobra.Command {
// Run executes the migration command.
func (m *MigrateVHDCommand) Run(ctx context.Context) error {
if !config.Get().System.UseVirtualDisks {
return errors.New("cannot migrate to vhd: configuration file \"system.use_virtual_disks\" value is set to \"false\"")
if !vhd.Enabled() {
return errors.New("cannot migrate to vhd: the underlying driver must be set to \"vhd\"")
}
for _, s := range m.manager.All() {
s.Log().Debug("starting migration of server contents to virtual disk...")