Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teach installer about Clear Linux #581

Merged
merged 1 commit into from
Jul 24, 2023
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: 6 additions & 5 deletions src/action/common/configure_shell_profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ impl ConfigureShellProfile {
let profile_target_path = Path::new(profile_target);
if let Some(parent) = profile_target_path.parent() {
if !parent.exists() {
tracing::trace!(
"Did not plan to edit `{}` as its parent folder does not exist.",
profile_target.display(),
create_directories.push(
CreateDirectory::plan(parent, None, None, 0o0755, false)
.await
.map_err(Self::error)?,
);
continue;
}
create_or_insert_files.push(
CreateOrInsertIntoFile::plan(
Expand All @@ -60,7 +60,8 @@ impl ConfigureShellProfile {
shell_buf.to_string(),
create_or_insert_into_file::Position::Beginning,
)
.await?,
.await
.map_err(Self::error)?,
);
}
}
Expand Down
7 changes: 7 additions & 0 deletions src/planner/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
ConfigureInitService::plan(self.init.init, self.init.start_daemon)
.await
Expand Down