Re: [systemd-devel] Suppressing automounting

2014-10-22 Thread Lennart Poettering
On Fri, 12.09.14 15:25, Dale R. Worley (wor...@alum.mit.edu) wrote: > > From: Tobias Geerinckx-Rice > > > Step back, and define exactly what it is you actually need^Wwant to do. > > For a certain entry in /etc/fstab (which will in practice always have > the option "nofail"), if the device is no

Re: [systemd-devel] Suppressing automounting

2014-09-17 Thread Dale R. Worley
> From: Tobias Geerinckx-Rice > That's not to say that it didn't happen to work most of the time. I > just hoped systemd could do better. I still do. I agree that systemd's current default behavior is better than the previous default. But there are some cases where I can easily define behavior

Re: [systemd-devel] Suppressing automounting

2014-09-16 Thread Tobias Geerinckx-Rice
Hallo, On 14 September 2014 19:49, Andrei Borzenkov wrote: > В Thu, 11 Sep 2014 21:53:27 +0200 > Tobias Geerinckx-Rice пишет: >> >> From my reading of the thread, this is to emulate as closely ye olde >> initscripts' unreliable and flawed behaviour of attempting to mount >> one or more devices e

Re: [systemd-devel] Suppressing automounting

2014-09-15 Thread Dale R. Worley
> From: Andrei Borzenkov > At least, it is impossible to achieve what the goal of OP was - > attempt to automount device exactly once on system boot and give up if > it was not successful. Which had been semantic of /etc/fstab for quite > some time. I don't have a need to "automount device exact

Re: [systemd-devel] Suppressing automounting

2014-09-14 Thread Andrei Borzenkov
В Thu, 11 Sep 2014 21:53:27 +0200 Tobias Geerinckx-Rice пишет: > > Step back, and define exactly what it is you actually need^Wwant to do. > It was described clear enough already. > From my reading of the thread, this is to emulate as closely ye olde > initscripts' unreliable and flawed behav

Re: [systemd-devel] Suppressing automounting

2014-09-14 Thread Andrei Borzenkov
В Thu, 11 Sep 2014 13:41:25 -0400 wor...@alum.mit.edu (Dale R. Worley) пишет: > > From: Colin Guthrie > > > I'm maybe missing something, but in the case of mount units, isn't that > > framework program mount(8)? > > > > It has a mechanism for parsing default options that apply to all mounts > >

Re: [systemd-devel] Suppressing automounting

2014-09-14 Thread Andrei Borzenkov
В Thu, 4 Sep 2014 18:32:20 -0400 wor...@alum.mit.edu (Dale R. Worley) пишет: > > From: Andrei Borzenkov > > > bor@opensuse:~/src/systemd> systemctl show boot.mount -p WantedBy > > --no-pager > > WantedBy=dev-sda1.device > > > > Which has the effect that if device was not present at boot but a

Re: [systemd-devel] Suppressing automounting

2014-09-12 Thread Dale R. Worley
> From: Tobias Geerinckx-Rice > Step back, and define exactly what it is you actually need^Wwant to do. For a certain entry in /etc/fstab (which will in practice always have the option "nofail"), if the device is not available "until booting is over" (which I'm willing to denote with a specified

Re: [systemd-devel] Suppressing automounting

2014-09-11 Thread Tobias Geerinckx-Rice
Hallo, On 11 September 2014 19:41, Dale R. Worley wrote: > > From: Colin Guthrie > > I'm maybe missing something, but in the case of mount units, isn't that > > framework program mount(8)? > > > > It has a mechanism for parsing default options that apply to all mounts > > and then calling out to

Re: [systemd-devel] Suppressing automounting

2014-09-11 Thread Dale R. Worley
> From: Colin Guthrie > I'm maybe missing something, but in the case of mount units, isn't that > framework program mount(8)? > > It has a mechanism for parsing default options that apply to all mounts > and then calling out to the appropriate, filesystem specific mount > program (e.g. mount.nfs

Re: [systemd-devel] Suppressing automounting

2014-09-11 Thread Colin Guthrie
Dale R. Worley wrote on 10/09/14 20:56: >> From: Mantas Mikulėnas > >>> What I was thinking of is, what is the program that reads (directly or >>> indirectly) the Store.mount file and from that decides exactly how to >>> call mount(8), and when to call it? >> >> It's systemd itself (pid 1). >> >>

Re: [systemd-devel] Suppressing automounting

2014-09-10 Thread Dale R. Worley
> From: Mantas Mikulėnas > > What I was thinking of is, what is the program that reads (directly or > > indirectly) the Store.mount file and from that decides exactly how to > > call mount(8), and when to call it? > > It's systemd itself (pid 1). > > > My guess was that the name of this program

Re: [systemd-devel] Suppressing automounting

2014-09-08 Thread Mantas Mikulėnas
On Mon, Sep 8, 2014 at 10:32 PM, Dale R. Worley wrote: >> From: Simon McVittie > >> > In my "Store.mount" file, I see no indication of an executable which >> > implements the unit. >> >> I think it's always mount(8), which has its own extension mechanism to >> dispatch per-filesystem if necessary

Re: [systemd-devel] Suppressing automounting

2014-09-08 Thread Dale R. Worley
> From: Simon McVittie > > In my "Store.mount" file, I see no indication of an executable which > > implements the unit. > > I think it's always mount(8), which has its own extension mechanism to > dispatch per-filesystem if necessary (e.g. mount.cifs). What I was thinking of is, what is the pr

Re: [systemd-devel] Suppressing automounting

2014-09-05 Thread Simon McVittie
On 04/09/14 23:32, Dale R. Worley wrote: > I admit that I haven't studied systemd enough to understand the > significance of WantedBy. My understanding is that systemd performs a > series of units, with dependencies showing which units must finish > before other units start. Sort of. It has a goa

Re: [systemd-devel] Suppressing automounting

2014-09-04 Thread Dale R. Worley
> From: Andrei Borzenkov > bor@opensuse:~/src/systemd> systemctl show boot.mount -p WantedBy --no-pager > WantedBy=dev-sda1.device > > Which has the effect that if device was not present at boot but appears > later, the very appearance of device triggers start of mount unit - > filesystem gets

Re: [systemd-devel] Suppressing automounting

2014-08-29 Thread Andrei Borzenkov
В Fri, 29 Aug 2014 14:59:05 -0400 wor...@alum.mit.edu (Dale R. Worley) пишет: > > From: wor...@alum.mit.edu (Dale R. Worley) > > >When reading /etc/fstab a few special mount options are > >understood by systemd which influence how dependencies are > >created for mount poin

Re: [systemd-devel] Suppressing automounting

2014-08-29 Thread Dale R. Worley
> From: wor...@alum.mit.edu (Dale R. Worley) >When reading /etc/fstab a few special mount options are >understood by systemd which influence how dependencies are >created for mount points from /etc/fstab. [...] If >x-systemd.device-timeout= is specified it may be u

Re: [systemd-devel] Suppressing automounting

2014-08-29 Thread Dale R. Worley
> From: Andrei Borzenkov > > > Here's an interesting fact: What systemd does (in this situation) > > > isn't true automounting; rather it waits for the *first* time the > > > device/volume becomes available, and then mounts it. Any later > > > attachments of the volume do not cause mounting (un

Re: [systemd-devel] Suppressing automounting

2014-08-29 Thread Dale R. Worley
> From: Mantas Mikulėnas > For fstab, the units are created by a 'generator' > (systemd-fstab-generator), which writes them under /run/systemd/generator > every time the configuration is reloaded. > > I'm not at my PC right now so I cannot check, but I /do/ remember someone > mentioning that if

Re: [systemd-devel] Suppressing automounting

2014-08-27 Thread Andrei Borzenkov
В Thu, 28 Aug 2014 00:31:49 +0300 Mantas Mikulėnas пишет: > On Aug 27, 2014 10:03 PM, "Dale R. Worley" wrote: > > > > > From: Thomas Suckow > > > > > > >> From: Lennart Poettering > > > > > > > >> Note that a concept of "mount at boot if it is there, otherwise > don't" > > > >> cannot work. >

Re: [systemd-devel] Suppressing automounting

2014-08-27 Thread Mantas Mikulėnas
On Aug 27, 2014 10:03 PM, "Dale R. Worley" wrote: > > > From: Thomas Suckow > > > > >> From: Lennart Poettering > > > > > >> Note that a concept of "mount at boot if it is there, otherwise don't" > > >> cannot work. > > > > > > It worked until a week or two ago. I want it back. > > > > > > I'm

Re: [systemd-devel] Suppressing automounting

2014-08-27 Thread Dale R. Worley
> From: Thomas Suckow > > >> From: Lennart Poettering > > > >> Note that a concept of "mount at boot if it is there, otherwise don't" > >> cannot work. > > > > It worked until a week or two ago. I want it back. > > > > I'm sure you're right that in the abstract, it cannot be made to > > work.

Re: [systemd-devel] Suppressing automounting

2014-08-20 Thread Thomas Suckow
On 08/20/2014 06:46 AM, Dale R. Worley wrote: From: Lennart Poettering Note that a concept of "mount at boot if it is there, otherwise don't" cannot work. It worked until a week or two ago. I want it back. I'm sure you're right that in the abstract, it cannot be made to work. But that is

Re: [systemd-devel] Suppressing automounting

2014-08-20 Thread Dale R. Worley
> From: Lennart Poettering > Note that a concept of "mount at boot if it is there, otherwise don't" > cannot work. It worked until a week or two ago. I want it back. I'm sure you're right that in the abstract, it cannot be made to work. But that isn't the problem I'm facing. Dale ___

Re: [systemd-devel] Suppressing automounting

2014-08-19 Thread Lennart Poettering
On Tue, 19.08.14 15:56, Dale R. Worley (wor...@alum.mit.edu) wrote: > (This is more proper for a systemd-users mailing list, but I can't > find one.) > > I'd like to customize my systemd. (I'm running Fedora Linux 19, with > systemd-204-20.fc19.x86_64.) > > I have a line in /etc/fstab like this

[systemd-devel] Suppressing automounting

2014-08-19 Thread Dale R. Worley
(This is more proper for a systemd-users mailing list, but I can't find one.) I'd like to customize my systemd. (I'm running Fedora Linux 19, with systemd-204-20.fc19.x86_64.) I have a line in /etc/fstab like this, which refers to a logical volume on a USB storage device: /dev/Freeze02/Store2