mirror of
https://github.com/rancher/os.git
synced 2025-09-01 06:40:31 +00:00
Convert install script to go
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
1
util/cutil.go
Normal file → Executable file
1
util/cutil.go
Normal file → Executable file
@@ -15,6 +15,7 @@ import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
// Sadly, this isn't reliable - blkid -L LABEL works more often :(
|
||||
func ResolveDevice(spec string) string {
|
||||
cSpec := C.CString(spec)
|
||||
defer C.free(unsafe.Pointer(cSpec))
|
||||
|
Reference in New Issue
Block a user