[systemd-devel] Assertion 'u->meta.type != _UNIT_TYPE_INVALID' failed at src/unit.c:257, function unit_add_to_load_queue(). Aborting.

Albert Strasheim fullung at gmail.com
Mon Apr 4 09:01:25 PDT 2011


Hello all

I'm trying to set up a configuration where a variable number of
devices under /dev/mapper get automounted.

I've started with the following:

# cat mpath\@.mount
[Unit]
Description=Data File System

[Mount]
What=/dev/mapper/%i
Where=/mnt/%i
Type=ext4

[Install]
Also=mpath at .automount
Alias=mpath at mpathc.mount
Alias=mpath at mpathd.mount

# cat mpath\@.automount
[Unit]
Description=Data Automount Point
Before=local-fs.target

[Automount]
Where=/mnt/%i

[Install]
Alias=local-fs.target.wants/mpath at mpathc.automount
Alias=local-fs.target.wants/mpath at mpathd.automount

but if I tell systemd to reload the configuration and then do

systemctl enable mpath\@.mount

I get the following error in /var/log/messages:

systemd[1]: Assertion 'u->meta.type != _UNIT_TYPE_INVALID' failed at
src/unit.c:257, function unit_add_to_load_queue(). Aborting.
systemd[1]: Caught <ABRT>, dumped core as pid 27495.
systemd[1]: Freezing execution.

Regards

Albert


More information about the systemd-devel mailing list