On Mon, 04.04.11 18:30, Albert Strasheim ([email protected]) wrote: > > Hello > > On Mon, Apr 4, 2011 at 6:01 PM, Albert Strasheim <[email protected]> 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. _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
