Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Update storage.go disconnect time
Browse files Browse the repository at this point in the history
  • Loading branch information
mangelajo committed Dec 14, 2023
1 parent 2811983 commit cd88817
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/drivers/jumpstarter-board/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const BLOCK_SIZE = 32 * 1024 * 1024

const WAIT_TIME_USB_STORAGE = 6 * time.Second
const WAIT_TIME_USB_STORAGE_OFF = 2 * time.Second
const WAIT_TIME_USB_STORAGE_DISCONNECT = 30 * time.Second //big workarround until cache flush works well

type StorageTarget int

Expand Down Expand Up @@ -239,6 +240,6 @@ func writeImageToDisk(imagePath string, diskPath string, offset uint64) error {
fmt.Printf("warning: udisksctl power-off failed: %s\n", errb.String())
color.Unset()
}
time.Sleep(WAIT_TIME_USB_STORAGE_OFF)
time.Sleep(WAIT_TIME_USB_STORAGE_DISCONNECT)
return nil
}

0 comments on commit cd88817

Please sign in to comment.