You must login to view /gokrazy/tools/commit/763d4e469713719bf9737de136c33f5e919abdf9?files=packer%2Fgotool.go.
The GitHub option should be usable for most people, it only links via username.

Files
tools/internal/packer/parttable_stub.go

22 lines
796 B
Go

//go:build !unix
package packer
import (
"fmt"
"os"
"runtime"
)
func deviceSize(fd uintptr) (uint64, error) {
return 0, fmt.Errorf("gokrazy is currently missing code for getting device sizes on your operating system. Please see the README at https://github.com/gokrazy/tools for alternatives, and consider contributing code to fix this")
}
func rereadPartitions(fd uintptr) error {
return fmt.Errorf("gokrazy is currently missing code for re-reading partition tables on your operating system. Please see the README at https://github.com/gokrazy/tools for alternatives, and consider contributing code to fix this")
}
func (p *Pack) SudoPartition(path string) (*os.File, error) {
return nil, fmt.Errorf("gokrazy is currently missing code for elevating privileges on %s", runtime.GOOS)
}