Skip to content

Commit

Permalink
Update internal/sgdisk/sgdisk.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Lebon <jonathan@jlebon.com>
  • Loading branch information
pothos and jlebon authored Oct 19, 2023
1 parent 78efdc2 commit f2c5fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sgdisk/sgdisk.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (op *Operation) Commit() error {
}
// In contrast to similar tools, sgdisk does not trigger the update of the kernel partition table
cmd = exec.Command(distro.PartprobeCmd(), op.dev)
if _, err := op.logger.LogCmd(cmd, "re-reading of %d deleted partitions and %d created partitions on %q", len(op.deletions), len(op.parts), op.dev); err != nil {
if _, err := op.logger.LogCmd(cmd, "triggering partition table reread on %q", op.dev); err != nil {
return fmt.Errorf("re-reading partitions failed: %v", err)
}

Expand Down

0 comments on commit f2c5fa9

Please sign in to comment.