mirror of
https://github.com/linka-cloud/d2vm.git
synced 2025-04-20 01:27:40 +00:00
fix: ensure fs error is checked
This commit is contained in:
parent
c15ce008db
commit
4d30dbc2b3
2
fs.go
2
fs.go
@ -43,7 +43,7 @@ func (f BootFS) IsSupported() bool {
|
|||||||
|
|
||||||
func (f BootFS) Validate() error {
|
func (f BootFS) Validate() error {
|
||||||
if !f.IsSupported() {
|
if !f.IsSupported() {
|
||||||
fmt.Errorf("invalid boot filesystem: %s valid filesystems are: fat32, ext4", f)
|
return fmt.Errorf("invalid boot filesystem: %s valid filesystems are: fat32, ext4", f)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user