[systemd-devel] Assertion 'u->meta.type != _UNIT_TYPE_INVALID' failed at src/unit.c:257, function unit_add_to_load_queue(). Aborting.
Lennart Poettering
lennart at poettering.net
Wed Apr 27 16:29:15 PDT 2011
On Mon, 04.04.11 18:30, Albert Strasheim (fullung at gmail.com) wrote:
>
> Hello
>
> On Mon, Apr 4, 2011 at 6:01 PM, Albert Strasheim <fullung at gmail.com> wrote:
> > 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
>
> After reading the systemd.mount manual page more carefully, it seems
> this isn't going to work since each mount unit needs a file named
> path-to-mount.mount. systemd probably shouldn't crash though.
The crash is fixed now in git.
> Given some tens of devices under /dev/mapper, is there a better way to
> get them all mounted without having to make a separate unit for each?
> This is quite common when one starts connecting lots of disks in SAS
> enclosures together.
My recommendation would be to write a tiny generator to drop into
/lib/systemd/system-generators which creates these units as needed. But
there'd be a bit of a chicken and egg problem here, thus requiring a
daemon reload at runtime.
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list