JOURNALCTL ERROR - Invalid value for IMPORT (invalid substitution type)

On Ubuntu server 22.04 I’m geting next errors:

Jul 29 06:23:54 can1 systemd-udevd[384]: /etc/udev/rules.d/99-digitalocean-automount.rules:11 Invalid value "/bin/sh -c 'echo TMP_MOUNT_DIR=$(mktemp -d -p /mnt .do-first-mount-XXXXXXXXX)'" for IMPORT (char 32: invalid substitution type), ignoring.
Jul 29 06:23:54 can1 systemd-udevd[384]: /etc/udev/rules.d/99-digitalocean-automount.rules:12 Invalid value "/bin/sh -c 'echo TMP_SCRIPT=$(mktemp -t'" for IMPORT (char 29: invalid substitution type), ignoring.

I checked what is written in /etc/udev/rules.d/99-digitalocean-automount.rules and I have found next lines (beside others):

# Create a temporary mountpoint and temporary location for the first-mount script.
IMPORT{program}="/bin/sh -c 'echo TMP_MOUNT_DIR=$(mktemp -d -p /mnt .do-first-mount-XXXXXXXXX)'"
IMPORT{program}="/bin/sh -c 'echo TMP_SCRIPT=$(mktemp -t'"

What is wrong?

Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
August 1, 2022

Hi @kacnje,

That’s really strange. I would need to further debug it myself if I can assist you with any suggestions. Can you please let me know if you just created a blank Ubuntu 22.04 or you’ve made any changes to it?