From cdb643729dccc6c723a4474c6e2805edade233ed Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 31 Dec 2024 11:25:42 -0600 Subject: [PATCH] exclude: Omit systemd-ssh-generator This thing is pointless. Unfortunately, we cannot use Portage's `INSTALL_MASK` feature as it doesn't work for symbolic links. Since _systemd_ installs symlinks in `/etc/ssh` that point to files we would mask, those symlinks would point to nothing, which would cause `sshd` to fail to start as it is unable to open those files. Thus, we have to omit these files by excluding them from the squashfs image. --- squashfs.exclude | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 squashfs.exclude diff --git a/squashfs.exclude b/squashfs.exclude new file mode 100644 index 0000000..59021cb --- /dev/null +++ b/squashfs.exclude @@ -0,0 +1,5 @@ +etc/ssh/ssh_config.d/20-systemd-ssh-proxy.conf +etc/ssh/sshd_config.d/20-systemd-userdb.conf +usr/lib/systemd/ssh_config.d +usr/lib/systemd/sshd_config.d +usr/lib/systemd/system-generators/systemd-ssh-generator