mirror of https://github.com/jetkvm/kvm.git
Update usb_mass_storage.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
65119ff040
commit
3e2786ef17
|
|
@ -37,7 +37,7 @@ func getMassStorageImage() (string, error) {
|
|||
}
|
||||
|
||||
func setMassStorageImage(imagePath string) error {
|
||||
if err, _ := gadget.OverrideGadgetConfig("mass_storage_lun0", "file", imagePath); err != nil {
|
||||
if err := gadget.OverrideGadgetConfig("mass_storage_lun0", "file", imagePath); err != nil {
|
||||
return fmt.Errorf("failed to set mass storage path: %w", err)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue