Hey Phillip,

would you please give me some documentation
for reference. I could not find something
about 'x-' on

https://www.kernel.org/doc/Documentation/kernel-parameters.txt
or
man mount

Maybe you misunderstood my intention.
Consider the following line that is similar to one in my fstab:

//mediaserver/multimedia    /mnt/samba/mediaserver/multimedia   cifs
auto,user,dir_mode=0007,file_mode=0117,uid=1000,gid=1000,credentials=/home/someuser/.smb/credential-file
0 0

If you have this situation (it could be resolved in different ways)
/home that could be on a network drive as well has to be mounted
before /mnt/samba/mediaserver/multimedia.

Unfortunately the systemd-fstab-generator has no way to figure
out the dependency between those mounts. So my suggestion is to add
an extra option so the line would look like:

//mediaserver/multimedia    /mnt/samba/mediaserver/multimedia   cifs
requires=LABEL:HOME,auto,user,dir_mode=0007,file_mode=0117,uid=1000,gid=1000,credentials=/home/someuser/.smb/credential-file
0 0

then systemd could figure out that /home has to be mounted before
/mnt/samba/mediaserver/multimedia.

more general something like:

option=type:target where
option in {requires, wants, ...} and
type   in {LABEL, UUID, DEV, PATH}

If the fstab would look like this the systemd-fstab-generator
could be guided to create correct dependencies. I can imagine
many more cases (e.g. nested mounts) where some guidance could
be helpful.

Cheers!

Jan

On 2014-05-05 15:25, Phillip Susi wrote:
> On 5/3/2014 6:34 PM, Jan Christoph Uhde wrote:
>> Package: mount Version: 2.20.1-5.7 Severity: wishlist
> 
>> Dear Maintainer,
> 
>> it would be great if mount would provide some dummy mount options
>> for systemd.
> 
>> mount -o systemdRequires=<device|uid|label|...> ...
> 
>> That way the systemd-generator would be able to resolve
>> dependences, enabling parallel mounting without hassle.
> 
> Aren't options not intended for the kernel like this supposed to start
> with "x-"?
> 
> 
> 


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to