I have created a new image and have attached networking and added a local user via incus shell. When I try to map another disk device using incus config device add hyd2 /home/me/dev disk source=/srv/share/dev/me, it succeeds, but then when I try to incus shell hyd2 I get Error: command not found.
When I (successfully) remove the disk device, I still get the Error: command not found when I try to incus shell hyd2. I don’t know how to recover. Advice plase!
OK, I figured out what the problem is: I was missing the path= parameter. The /home/me/dev is the name of the device, not the actual path. The correct command is incus config device add hyd2 /home/me/dev source=/srv/share/dev/me path=/home/me/dev.