Merge pull request #11777 from NixOS/mergify/bp/2.24-maintenance/pr-11759

fix: make sure directory exists before using `ln` (backport #11759)
This commit is contained in:
Eelco Dolstra 2024-11-01 16:56:25 +01:00 committed by GitHub
commit 960c288fa0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,6 +96,9 @@ poly_configure_nix_daemon_service() {
if [ -e /run/systemd/system ]; then
task "Setting up the nix-daemon systemd service"
_sudo "to create parent of the nix-daemon tmpfiles config" \
mkdir -p "$(dirname "$TMPFILES_DEST")"
_sudo "to create the nix-daemon tmpfiles config" \
ln -sfn "/nix/var/nix/profiles/default$TMPFILES_SRC" "$TMPFILES_DEST"