1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00

incus-user: Update for internal/linux

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
Stéphane Graber
2023-09-14 19:35:02 -04:00
parent 198df01570
commit ab8611fe89

View File

@@ -9,6 +9,7 @@ import (
"github.com/lxc/incus/client"
"github.com/lxc/incus/incusd/revert"
"github.com/lxc/incus/internal/linux"
"github.com/lxc/incus/internal/util"
"github.com/lxc/incus/shared"
"github.com/lxc/incus/shared/api"
@@ -49,7 +50,7 @@ func serverInitialConfiguration(client incus.InstanceServer) error {
return fmt.Errorf("Failed to get server info: %w", err)
}
availableBackends := util.AvailableStorageDrivers(info.Environment.StorageSupportedDrivers, util.PoolTypeLocal)
availableBackends := linux.AvailableStorageDrivers(info.Environment.StorageSupportedDrivers, util.PoolTypeLocal)
// Load the default profile.
profile, profileEtag, err := client.GetProfile("default")