* How to pass "-n" option to the mount command via automounter?
@ 2008-07-30 9:57 Ondrej Valousek
2008-07-30 11:59 ` Ondrej Valousek
0 siblings, 1 reply; 3+ messages in thread
From: Ondrej Valousek @ 2008-07-30 9:57 UTC (permalink / raw)
To: autofs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to pass "-n" option to the mount command via automounter?
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
2008-07-31 3:52 ` Ian Kent
0 siblings, 1 reply; 3+ messages in thread
From: Ondrej Valousek @ 2008-07-30 11:59 UTC (permalink / raw)
To: autofs
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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to pass "-n" option to the mount command via automounter?
2008-07-30 11:59 ` Ondrej Valousek
@ 2008-07-31 3:52 ` Ian Kent
0 siblings, 0 replies; 3+ messages in thread
From: Ian Kent @ 2008-07-31 3:52 UTC (permalink / raw)
To: Ondrej Valousek; +Cc: autofs
On Wed, 2008-07-30 at 13:59 +0200, Ondrej Valousek wrote:
> 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)
ln -s /proc/mounts /etc/mtab
in the partition that is used for your /etc should do what you need.
>
> 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
> >
>
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-07-31 3:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2008-07-31 3:52 ` Ian Kent
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.