push dkl init boot logic here

This commit is contained in:
Mikaël Cluseau
2023-12-04 13:59:37 +01:00
parent 1555419549
commit 898c43b954
9 changed files with 141 additions and 50 deletions

View File

@ -192,10 +192,6 @@ mainLoop:
}
}
func losetup(dev, file string) {
run("/sbin/losetup", "-r", dev, file)
}
func run(cmd string, args ...string) {
if output, err := exec.Command(cmd, args...).CombinedOutput(); err != nil {
fatalf("command %s %q failed: %v\n%s", cmd, args, err, string(output))