Skip to content

Commit

Permalink
Begin adding some common patches
Browse files Browse the repository at this point in the history
  • Loading branch information
rootmos committed Nov 18, 2023
1 parent 419c81b commit 89b7c91
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions openbsd
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,18 @@ class Qemu:
def from_arch(arch):
return Qemu(base_cmdline = situation.qemu(arch))

rlib = {
"doas": {
"files": [
{
"lines": [ "permit nopass :wheel" ],
"mode": 0o400,
"dst": "/etc/doas.conf",
},
],
},
}

class Autoinstall:
logger = logging.getLogger(f"{whoami}.autoinstall")

Expand Down Expand Up @@ -1087,6 +1099,13 @@ class Autoinstall:
installers = []

for n, p in spec.get("patch", {}).items():
if n == "rlib":
for k, v in p.items():
if v is True:
p = rlib[k]
else:
self.logger.warning(f"what do you mean: patch.{n}.{k} := {v}")

pkgs |= set(p.get("pkgs", []))
if p.get("pkg"):
pkgs.add(p.get("pkg"))
Expand Down

0 comments on commit 89b7c91

Please sign in to comment.