1
0
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:
Sven Dowideit
2016-12-01 13:55:19 +10:00
parent 80820e610a
commit 087bc6fd2d
15 changed files with 797 additions and 29 deletions

1
util/cutil.go Normal file → Executable file
View 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))