diff --git a/openbsd b/openbsd index 2345419..6a3ecd3 100755 --- a/openbsd +++ b/openbsd @@ -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") @@ -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"))