agama-project / agama

A service-based Linux installer
https://agama-project.github.io/
GNU General Public License v2.0
142 stars 43 forks source link

Uninitialized constant error when loading storage profile #1706

Closed serock closed 6 days ago

serock commented 1 week ago

I'm using the agama-installer.x86_64-10.0.0-openSUSE-Build25.151.iso in VirtualBox 7.0.18 on openSUSE Leap 15.6. When I attempt to load a profile that has a storage section that uses a search, I get a failure:

agama:~ # agama config load < gpt.json
Anyhow(Backend call failed with status 400 and text '{"error":"Agama service error: D-Bus service error: org.freedesktop.DBus.Error.Failed: uninitialized constant Agama::Storage::ConfigConversions::FromJSONConversions::Search::SEARCH_ANYTHING_STRING; caused by 1 sender=:1.1 -> dest=org.opensuse.Agama.Storage1 serial=90 reply_serial= path=/org/opensuse/Agama/Storage1; interface=org.opensuse.Agama.Storage1; member=SetConfig error_name="}')

The gpt.json profile that I'm trying to load is:

{
  "storage": {
    "drives": [
      {
        "search": "/dev/sda",
        "ptableType": "gpt"
      }
    ]
  }
}
ancorgs commented 6 days ago

A fix is being worked on.

joseivanlopez commented 6 days ago

Fixed by https://github.com/agama-project/agama/pull/1713.