Merge "cluster/nix: symlink /sbin/lvm"

master
q3k 2021-09-12 22:11:07 +00:00 committed by Gerrit Code Review
commit 6c88de9dd7
1 changed files with 9 additions and 0 deletions

View File

@ -54,6 +54,15 @@ rec {
# Use Chrony instead of systemd-timesyncd
services.chrony.enable = true;
# Symlink lvm into /sbin/lvm on activation. This is needed by Rook OSD
# instances running on Kubernetes.
# See: https://github.com/rook/rook/commit/f3c4975e353e3ce3599c958ec6d2cae8ee8f6f61
system.activationScripts.sbinlvm =
''
mkdir -m 0755 -p /sbin
ln -sfn ${pkgs.lvm2.bin}/bin/lvm /sbin/lvm
'';
# Enable the OpenSSH daemon.
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [