mirror of
https://github.com/rwinkhart/cachyos-postinstall-helper.git
synced 2026-08-27 20:36:32 -04:00
Fourth round of fixes
This commit is contained in:
+1
-12
@@ -1,11 +1,5 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/rwinkhart/go-boilerplate/other"
|
||||
)
|
||||
|
||||
func universalTweaks() {
|
||||
// Lock root account
|
||||
chrootCommandRun([]string{"passwd", "--delete", "root"})
|
||||
@@ -15,10 +9,5 @@ func universalTweaks() {
|
||||
chrootCommandRun([]string{"usermod", "-aG", "uucp", getUsername()})
|
||||
|
||||
// Force disable kernel watchdog (kernel parameters should do this as well)
|
||||
f, err := os.Create(mountPoint + "/etc/modprobe.d/blacklist.conf")
|
||||
if err != nil {
|
||||
other.PrintError("Failed to create "+mountPoint+"/etc/modprobe.d/blacklist.conf", 1)
|
||||
}
|
||||
f.WriteString("# Disable kernel watchdog\nblacklist iTCO_wdt")
|
||||
f.Close()
|
||||
writeFile(mountPoint+"/etc/modprobe.d/blacklist.conf", "# Disable kernel watchdog\nblacklist iTCO_wdt\n", "root", 0644)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user