mirror of
https://github.com/rwinkhart/cachyos-postinstall-helper.git
synced 2026-08-27 20:36:32 -04:00
Fix all tweaks mode getting stuck on pre-mount; fix yay config; exit after firmware selector in all tweaks mode
This commit is contained in:
@@ -2,6 +2,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/rwinkhart/go-boilerplate/back"
|
"github.com/rwinkhart/go-boilerplate/back"
|
||||||
@@ -23,6 +24,9 @@ func firmwareSelector() {
|
|||||||
allPackages := append(nonOptional, optional...)
|
allPackages := append(nonOptional, optional...)
|
||||||
managePackages("-Rcns", []string{"linux-firmware"})
|
managePackages("-Rcns", []string{"linux-firmware"})
|
||||||
managePackages("-S", allPackages)
|
managePackages("-S", allPackages)
|
||||||
|
if performAllTweaks {
|
||||||
|
os.Exit(0)
|
||||||
|
}
|
||||||
case 3:
|
case 3:
|
||||||
optional = append(optional, firm+"intel")
|
optional = append(optional, firm+"intel")
|
||||||
case 4:
|
case 4:
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ func premount() {
|
|||||||
other.PrintError("Failed to enable fast_commit", 1)
|
other.PrintError("Failed to enable fast_commit", 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !performAllTweaks {
|
if performAllTweaks {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user