Try sudo@sssd2 ?

This commit is contained in:
Xavier Beaudouin
2025-03-06 16:56:47 +01:00
parent c5b8b6ec7c
commit 733f329e12
8 changed files with 132 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- cloudinit/distros/freebsd.py.orig 2024-10-25 15:58:28 UTC
+++ cloudinit/distros/freebsd.py
@@ -35,7 +35,7 @@ class Distro(cloudinit.distros.bsd.BSD):
pkg_cmd_update_prefix = ["pkg", "update"]
pkg_cmd_upgrade_prefix = ["pkg", "upgrade"]
prefer_fqdn = True # See rc.conf(5) in FreeBSD
- home_dir = "/usr/home"
+ home_dir = "/home"
# FreeBSD has the following dhclient lease path:
# /var/db/dhclient.leases.<iface_name>
dhclient_lease_directory = "/var/db"

View File

@ -0,0 +1,20 @@
--- cloudinit/settings.py.orig 2021-03-17 15:43:42 UTC
+++ cloudinit/settings.py
@@ -12,7 +12,7 @@
CFG_ENV_NAME = "CLOUD_CFG"
# This is expected to be a yaml formatted file
-CLOUD_CONFIG = "/etc/cloud/cloud.cfg"
+CLOUD_CONFIG = "%%PREFIX%%/etc/cloud/cloud.cfg"
RUN_CLOUD_CONFIG = "/run/cloud-init/cloud.cfg"
@@ -50,7 +50,7 @@ CFG_BUILTIN = {
"system_info": {
"paths": {
"cloud_dir": "/var/lib/cloud",
- "templates_dir": "/etc/cloud/templates/",
+ "templates_dir": "%%PREFIX%%/etc/cloud/templates/",
},
"distro": "ubuntu",
"network": {"renderers": None},

View File

@ -0,0 +1,5 @@
--- config/cloud.cfg.d/99_freebsd.cfg.orig 2021-12-13 06:41:51 UTC
+++ config/cloud.cfg.d/99_freebsd.cfg
@@ -0,0 +1,2 @@
+no_ssh_fingerprints: true
+disable_network_activation: true

View File

@ -0,0 +1,11 @@
--- setup.py.orig 2021-03-17 15:40:30 UTC
+++ setup.py
@@ -153,7 +153,7 @@ INITSYS_TYPES = sorted([f.partition(".")[0] for f in I
# Install everything in the right location and take care of Linux (default) and
# FreeBSD systems.
USR = "usr"
-ETC = "etc"
+ETC = "%%PREFIX%%/etc"
USR_LIB_EXEC = "usr/lib"
LIB = "lib"
if os.uname()[0] in ["FreeBSD", "DragonFly"]: