kayos@tcp.direct 2024-06-19 11:34:31 -07:00
parent b618f7348c
commit 7fddd4d073
No known key found for this signature in database
GPG key ID: 4B841471B4BEE979
2 changed files with 2 additions and 1 deletions

View file

@ -83,7 +83,7 @@ func Set_KernelStub(isRoot bool) {
// Run and log, check for errors
common.ErrorCheck(command.ExecAndLogSudo(isRoot, true,
"kernelstub -a "+kernel_args,
"kernelstub -a "+fmt.Sprintf("\"%s\"", kernel_args),
),
"Error, kernelstub command returned exit code 1",
)

View file

@ -309,6 +309,7 @@ func CopyToSystem(isRoot bool, conffile, sysfile string) {
common.ErrorCheck(err, fmt.Sprintf("Failed to read %s", conffile))
err = os.WriteFile(sysfile, fDat, 0644)
common.ErrorCheck(err, fmt.Sprintf("Failed to write %s", sysfile))
logger.Printf("Copied %s to %s\n", conffile, sysfile)
return
}