mirror of
https://github.com/rwinkhart/cachyos-postinstall-helper.git
synced 2026-09-05 16:47:32 -04:00
Simplify doas config
This commit is contained in:
@@ -50,7 +50,6 @@ func main() {
|
|||||||
case 4:
|
case 4:
|
||||||
mountPartition()
|
mountPartition()
|
||||||
removals()
|
removals()
|
||||||
// TODO remove config/data
|
|
||||||
case 5:
|
case 5:
|
||||||
mountPartition()
|
mountPartition()
|
||||||
applications()
|
applications()
|
||||||
|
|||||||
@@ -20,10 +20,10 @@ func system() {
|
|||||||
doAll = true
|
doAll = true
|
||||||
fallthrough
|
fallthrough
|
||||||
case 3:
|
case 3:
|
||||||
// TODO fix!
|
|
||||||
writeFile(mountPoint+"/etc/doas.conf", "permit persist keepenv :wheel as root\n", "root", 0644)
|
writeFile(mountPoint+"/etc/doas.conf", "permit persist keepenv :wheel as root\n", "root", 0644)
|
||||||
managePackage("-S", "opendoas")
|
managePackage("-S", "opendoas")
|
||||||
//chrootCommandRun([]string{"pacman", "-R", "sudo", "qt-sudo", "--noconfirm"})
|
chrootCommandRun([]string{"pacman", "-S", "--asexplicit", "--dbonly", "archlinux-keyring", "autoconf", "automake", "binutils", "bison", "debugedit", "fakeroot", "file", "findutils", "flex", "gawk", "gcc", "gettext", "grep", "groff", "gzip", "libtool", "m4", "make", "pacman", "patch", "pkgconf", "sed", "texinfo", "which", "--noconfirm"})
|
||||||
|
chrootCommandRun([]string{"pacman", "-R", "sudo", "qt-sudo", "--noconfirm"})
|
||||||
|
|
||||||
if !doAll {
|
if !doAll {
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user