Skip to content

Commit

Permalink
run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Sep 24, 2024
1 parent 08307e4 commit 6db942c
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,24 @@ impl InstallationType {

fn set_cgpt_flags(blockdev: &Path) -> Result<()> {
tracing::debug!("Setting cgpt flags");
let blockdev_str = blockdev.to_str().ok_or_else(|| eyre!("Invalid block device path"))?;
let blockdev_str = blockdev
.to_str()
.ok_or_else(|| eyre!("Invalid block device path"))?;
let status = Command::new("cgpt")
.args(["add", "-i", "1", "-t", "kernel", "-P", "15", "-T", "1", "-S", "1", blockdev_str])
.args([
"add",
"-i",
"1",
"-t",
"kernel",
"-P",
"15",
"-T",
"1",
"-S",
"1",
blockdev_str,
])
.status()?;

if !status.success() {
Expand Down

0 comments on commit 6db942c

Please sign in to comment.