From: Ondrej Valousek <webserv@s3group.cz>
To: autofs@linux.kernel.org
Subject: Re: How to pass "-n" option to the mount command via automounter?
Date: Wed, 30 Jul 2008 13:59:50 +0200 [thread overview]
Message-ID: <489057B6.5070108@s3group.cz> (raw)
In-Reply-To: <48903B22.3000608@s3group.cz>
From what I see in the source for automounter, the answer is "no" :-(
I even tried automount -O "rw -n" hack - should work but it does not.
In the spawn.c file I see comment that autofs ver. 5 needs to have
/etc/mtab file updated. This is not a problem as most diskless
environments have /etc/mtab pointed to /proc/mounts.
I believe this is a bug. Can we have it fixed? (for example detect if
/etc/mytab is a symlink and if it is, pass the -n option to the mount
command automagically)
Thanks,
Ondrej
Ondrej Valousek wrote:
> Hi List,
>
> I am wondering - I have diskless systems deployed here with /etc being
> read-only -> I need to pass "-n" option to the mount command in order to
> make it working.
> I tried:
>
>> automount -O "-n"
>>
> but it passes the -n option after -o, like this:
>
> mount_mount: mount(nfs): calling mount -t nfs -s -o -n
> hercules:/ext3/tmp /proj/tmp
>
> I need the -n option to be passed before "-o". How could I do it?
> Many thanks for your help.
>
> Ondrej
>
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs
>
next prev parent reply other threads:[~2008-07-30 11:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-30 9:57 How to pass "-n" option to the mount command via automounter? Ondrej Valousek
2008-07-30 11:59 ` Ondrej Valousek [this message]
2008-07-31 3:52 ` Ian Kent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=489057B6.5070108@s3group.cz \
--to=webserv@s3group.cz \
--cc=autofs@linux.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.