mirror of
https://github.com/rwinkhart/cachyos-postinstall-helper.git
synced 2026-08-28 04:46:52 -04:00
Add firmware selector
This commit is contained in:
+9
-1
@@ -9,7 +9,12 @@ import (
|
||||
|
||||
func premount() {
|
||||
for {
|
||||
choice := front.InputMenuGen("Tweak:", []string{"BACK", "enable ext4 fast_commit"})
|
||||
var choice int
|
||||
if performAllTweaks {
|
||||
choice = 2
|
||||
} else {
|
||||
choice = front.InputMenuGen("Tweak:", []string{"BACK", "enable ext4 fast_commit"})
|
||||
}
|
||||
switch choice {
|
||||
case 1:
|
||||
return
|
||||
@@ -20,5 +25,8 @@ func premount() {
|
||||
other.PrintError("Failed to enable fast_commit", 1)
|
||||
}
|
||||
}
|
||||
if !performAllTweaks {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user