Kenneth Porter wrote:> On 6/7/2017 8:31 AM, m.roth at 5-cent.us wrote: >> Not sure what you mean when you say "jacked up filesystem". Here's >> fstab: > > In systemd fstab takes care of only rudimentary mounting. Most mounting > is done through *.mount unit files. Type "mount" and you'll see a bunch > of other mounts that were implemented that way. Add your custom mounts > by creating suitable files in /etc/systemd/system/*mount. (There's also > *.automount for creating demand-based mounts.) >You. Have. To. Be. Joking. WHY? Why doesn't systemd *look* at fstab and create what it needs on the fly? Why does it only "rudimentary mount"? What purpose does that serve? What goal is it trying to achieve by this? mark
On Wed, Jun 07, 2017 at 12:47:58PM -0400, m.roth at 5-cent.us wrote:> You. Have. To. Be. Joking. WHY? Why doesn't systemd *look* at fstab and > create what it needs on the fly? Why does it only "rudimentary mount"?It does that. Read the man page for 'systemd-fstab-generator', and 'systemd.generator'.> What purpose does that serve? What goal is it trying to achieve by > this?I think the biggest use I see is that your services can have dependencies on mountpoints. -- Jonathan Billings <billings at negate.org>
On Wed, 2017-06-07 at 12:47 -0400, m.roth at 5-cent.us wrote:> Kenneth Porter wrote: > > On 6/7/2017 8:31 AM, m.roth at 5-cent.us wrote: > > > Not sure what you mean when you say "jacked up filesystem". > > > Here's > > > fstab: > > > > In systemd fstab takes care of only rudimentary mounting. Most > > mounting > > is done through *.mount unit files. Type "mount" and you'll see a > > bunch > > of other mounts that were implemented that way. Add your custom > > mounts > > by creating suitable files in /etc/systemd/system/*mount. (There's > > also > > *.automount for creating demand-based mounts.) > > > > You. Have. To. Be. Joking. WHY? Why doesn't systemd *look* at fstab > and > create what it needs on the fly? Why does it only "rudimentary > mount"?Calm down Mark. You are overreacting. Systemd does generate mount units in the fly. Check the documentation: man systemd.mount tells you more. I would not call fstab rudimentary. /Louis
On 6/7/2017 10:09 AM, Louis Lagendijk wrote:> I would not call fstab rudimentary.Perhaps I phrased that poorly. The idea is that fstab provides a minimal set of mounts to get off the ground. (My understanding, not saying that's how it's designed or intended.) This follows the packaging pattern that every unique setting goes in its own file. You don't disturb or risk breaking other settings when you add a new setting, and you can separately package these settings without meddling with central files. --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus