Skip to content

Commit

Permalink
Fix clock sync on start of the sandbox (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno authored Feb 5, 2025
2 parents 8ed50a9 + 38ffc4e commit 20aff1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/envd/internal/host/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func updateClock() error {
defer cancel()

// The chronyc -a makestep is not immediately stepping the clock
err := exec.CommandContext(ctx, "/usr/bin/bash", "-c", "/usr/bin/date -s @$(/usr/sbin/phc_ctl /dev/ptp0 get | cut -d' ' -f5)").Run()
err := exec.CommandContext(ctx, "/bin/bash", "-l", "-c", "date -s @$(/usr/sbin/phc_ctl /dev/ptp0 get | cut -d' ' -f5)").Run()
if err != nil {
return fmt.Errorf("failed to update clock: %w", err)
}
Expand Down

0 comments on commit 20aff1d

Please sign in to comment.