Skip to content

Commit 0ca887e

Browse files
committed
Merge branch 'main' of github.com:FyraLabs/readymade
2 parents 5fb729c + 0395094 commit 0ca887e

13 files changed

+292
-50
lines changed

Cargo.lock

+192-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ scopeguard = "1.2.0"
4949
tracing-test = "0.2.5"
5050
serde-systemd-unit = { path = "./serde-systemd-unit" }
5151
format-bytes = "0.3.0"
52+
ipc-channel = { version = "0.19.0", features = ["async"] }
5253

5354
[dependencies.os-detect]
5455
git = "https://github.com/FyraLabs/distinst"

src/backend/custom.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ use std::path::Component;
22
use std::path::Path;
33
use std::path::PathBuf;
44

5+
use super::install::InstallationState;
6+
57
#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
68
pub struct MountTarget {
79
#[doc(hidden)]
@@ -82,7 +84,7 @@ impl MountTargets {
8284
// 2. copy stuff
8385
// 3. funny setup_system()
8486
pub fn install_custom(
85-
state: &crate::install::InstallationState,
87+
state: &InstallationState,
8688
mounttags: &mut MountTargets,
8789
) -> color_eyre::Result<()> {
8890
let destroot = Path::new("/mnt/custom");
@@ -96,7 +98,7 @@ pub fn install_custom(
9698
}
9799
};
98100

99-
let copy_source = PathBuf::from(crate::install::InstallationState::determine_copy_source());
101+
let copy_source = PathBuf::from(InstallationState::determine_copy_source());
100102
if copy_source.is_file() {
101103
// TODO: impl callback status progress
102104
super::mksys::unsquash_copy(&copy_source, destroot, |_, _| {})?;

0 commit comments

Comments
 (0)