Switch to chroot-based usage (run from installer ISO)

This commit is contained in:
2025-09-29 23:51:15 -04:00
parent 85b345d54c
commit 9cbabb58c9
12 changed files with 128 additions and 139 deletions
+24
View File
@@ -0,0 +1,24 @@
package main
import (
"os/exec"
"github.com/rwinkhart/go-boilerplate/front"
"github.com/rwinkhart/go-boilerplate/other"
)
func premount() {
for {
choice := front.InputMenuGen("Tweak:", []string{"BACK", "enable ext4 fast_commit"})
switch choice {
case 1:
return
case 2:
cmd := exec.Command("tune2fs", "-O", "fast_commit", partitionR)
err := cmd.Run()
if err != nil {
other.PrintError("Failed to enable fast_commit", 1)
}
}
}
}