Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions rust/agama-lib/share/profile.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@
"title": "The name of the network interface bound to this connection",
"type": "string"
},
"mac-address": {
"title": "Custom mac-address",
"macAddress": {
"title": "Custom MAC address",
"description": "Can also be 'preserve', 'permanent', 'random' or 'stable'.",
"type": "string"
},
Expand Down Expand Up @@ -149,10 +149,21 @@
"additionalProperties": false
}
},
"ignore_auto_dns": {
"ignoreAutoDns": {
"description": "Whether DNS options provided via DHCP are used or not",
"type": "boolean"
},
"status": {
"title": "Connection status",
"description": "The status of the connection",
"type": "string",
"enum": ["up", "down", "removed"]
},
"autoconnect": {
"title": "Auto-connected",
"description": "Whether the connection should be automatically connected",
"type": "boolean"
},
"wireless": {
"type": "object",
"title": "Wireless configuration",
Expand Down Expand Up @@ -389,6 +400,11 @@
"hashedPassword": {
"title": "Flag for hashed password (true) or plain text password (false or not defined)",
"type": "boolean"
},
"autologin": {
"title": "Automatic user login",
"description": "Whether the user should be automatically logged in (only relevant in desktop systems)",
"type": "boolean"
}
},
"required": ["fullName", "userName", "password"]
Expand Down
2 changes: 2 additions & 0 deletions rust/agama-lib/src/product/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ use serde::{Deserialize, Serialize};
pub struct ProductSettings {
/// ID of the product to install (e.g., "ALP", "Tumbleweed", etc.)
pub id: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub registration_code: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub registration_email: Option<String>,
}
1 change: 1 addition & 0 deletions rust/agama-lib/src/users/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@ pub struct RootUserSettings {
#[serde(skip_serializing)]
pub hashed_password: Option<bool>,
/// Root SSH public key
#[serde(skip_serializing_if = "Option::is_none")]
pub ssh_public_key: Option<String>,
}
5 changes: 5 additions & 0 deletions rust/package/agama.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Dec 19 11:39:14 UTC 2024 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

- Fix several validation issues (gh#agama-project/agama#1845).

-------------------------------------------------------------------
Wed Dec 18 12:32:00 UTC 2024 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

Expand Down