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
11 changes: 5 additions & 6 deletions rust/agama-software/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,9 @@ fn normalize_repository_url(mount_point: &str, path: &str) -> Option<String> {

let device = by_id_devices.next().unwrap_or_default();
if device.is_empty() {
Some(format!("hd:{mount_point}?device={live_device}"))
Some(format!("hd:{path}?device={live_device}"))
} else {
Some(format!("hd:{mount_point}?device={device}"))
Some(format!("hd:{path}?device={device}"))
}
}

Expand All @@ -545,13 +545,12 @@ mod tests {
std::fs::create_dir_all(tmp_dir.path().join(LIVE_REPO_DIR))?;
std::fs::create_dir_all(tmp_dir.path().join(DUD_REPO_DIR))?;

let tmp_dir_str = tmp_dir.as_ref().to_str().unwrap();
let repositories = find_mandatory_repositories(tmp_dir.as_ref());
assert!(repositories.len() == 2);

let install = repositories.first().unwrap();
assert_eq!(&install.alias, "Installation");
assert!(install
.url
.contains(&format!("hd:{}/{}", tmp_dir_str, LIVE_REPO_DIR)));
assert!(install.url.contains(&format!("hd:/install")));
assert!(install.predefined);

let dud = repositories.last().unwrap();
Expand Down
6 changes: 6 additions & 0 deletions rust/package/agama.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Feb 27 11:39:31 UTC 2026 - Ladislav Slezák <lslezak@suse.com>

- Fixed using packages from the Full (offline) installation medium
when booted from harddisk or USB flash (bsc#1258828)

-------------------------------------------------------------------
Thu Feb 26 16:44:32 UTC 2026 - David Diaz <dgonzalez@suse.com>

Expand Down
Loading