This commit is contained in:
parent
b618f7348c
commit
7fddd4d073
2 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
)
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue