Skip to content

Function not implemented (os error 38) while trying to link directory #231

@szethh

Description

@szethh

Describe the bug

When trying to link a file that is not immediately under /etc, I get the error:

[2025-05-09T15:44:26Z INFO  system_manager] Creating symlink: /etc/pve/qemu-server/505.conf -> ./../../.system-manager-static/pve/qemu-server/505.conf
[2025-05-09T15:44:26Z ERROR system_manager::activate::etc_files] Error while trying to link directory /etc/.system-manager-static/pve/qemu-server: Function not implemented (os error 38)

My config looks like:

environment = {
  etc = {
    "pve/storage.cfg".text = "...";
    "pve/qemu-server/101.conf".source = ./101.conf;
    "pve/qemu-server/505.conf".source = ./505.conf;
  };
};

The (same) error occurs with all files under a directory. Note that both "pve" and "pve/qemu-server" are already-existing directories.

To Reproduce

Steps to reproduce the behavior:

  1. Create a nested file like environment.etc."mydir/myfile".text = ....
  2. Apply the configuration

Expected behavior

The nested "myfile" is created under "mydir". In my case, "mydir" already exists.

System information

system-manager 0.1.0 running on Proxmox 8.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions