Teach installer about Clear Linux (#581)
This commit is contained in:
parent
4d1c6cb9e0
commit
a049e52fd8
|
@ -45,11 +45,11 @@ impl ConfigureShellProfile {
|
||||||
let profile_target_path = Path::new(profile_target);
|
let profile_target_path = Path::new(profile_target);
|
||||||
if let Some(parent) = profile_target_path.parent() {
|
if let Some(parent) = profile_target_path.parent() {
|
||||||
if !parent.exists() {
|
if !parent.exists() {
|
||||||
tracing::trace!(
|
create_directories.push(
|
||||||
"Did not plan to edit `{}` as its parent folder does not exist.",
|
CreateDirectory::plan(parent, None, None, 0o0755, false)
|
||||||
profile_target.display(),
|
.await
|
||||||
|
.map_err(Self::error)?,
|
||||||
);
|
);
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
create_or_insert_files.push(
|
create_or_insert_files.push(
|
||||||
CreateOrInsertIntoFile::plan(
|
CreateOrInsertIntoFile::plan(
|
||||||
|
@ -60,7 +60,8 @@ impl ConfigureShellProfile {
|
||||||
shell_buf.to_string(),
|
shell_buf.to_string(),
|
||||||
create_or_insert_into_file::Position::Beginning,
|
create_or_insert_into_file::Position::Beginning,
|
||||||
)
|
)
|
||||||
.await?,
|
.await
|
||||||
|
.map_err(Self::error)?,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,6 +77,13 @@ impl Planner for Linux {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
plan.push(
|
||||||
|
CreateDirectory::plan("/etc/tmpfiles.d", None, None, 0o0755, false)
|
||||||
|
.await
|
||||||
|
.map_err(PlannerError::Action)?
|
||||||
|
.boxed(),
|
||||||
|
);
|
||||||
|
|
||||||
plan.push(
|
plan.push(
|
||||||
ConfigureInitService::plan(self.init.init, self.init.start_daemon)
|
ConfigureInitService::plan(self.init.init, self.init.start_daemon)
|
||||||
.await
|
.await
|
||||||
|
|
Loading…
Reference in a new issue