This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ability to specify /cygdrive mount value in setup


On Nov 25 21:33, Buchbinder, Barry (NIH/NIAID) [E] wrote:
> cyg Simple sent the following at Wednesday, November 25, 2015 3:59 PM
> >>> Wed, 25 Nov 2015 19:39:08 Andrey wrote:
> >>
> >>>>>> You can precreate fstab, I think.
> >>
> >>> Yes I do this all the time.  If, for example, C:\cygwin64\etc\fstab already exists
> >>> when you run setup-x86_64.exe the first time, setup will use that /etc/fstab.
> >>> So all the links will be created during initial installation with / and not /cygdrive.
> >>
> >> Just which links we're talking about, yet again?...
> >>
> >
> >n 11/25/2015 3:25 PM, Andrey Repin wrote:
> >
> >find / -type l -exec ls -l {} \; | grep cygdrive
> >
> >lrwxrwxrwx 1 cyg_Simple cyg_Simple 46 Nov 25 09:29 /etc/hosts ->
> >/cygdrive/c/WINDOWS/System32/drivers/etc/hosts
> >lrwxrwxrwx 1 cyg_Simple cyg_Simple 49 Nov 25 09:29 /etc/networks ->
> >/cygdrive/c/WINDOWS/System32/drivers/etc/networks
> >lrwxrwxrwx 1 cyg_Simple cyg_Simple 49 Nov 25 09:29 /etc/protocols ->
> >/cygdrive/c/WINDOWS/System32/drivers/etc/protocol
> >lrwxrwxrwx 1 cyg_Simple cyg_Simple 49 Nov 25 09:29 /etc/services ->
> >/cygdrive/c/WINDOWS/System32/drivers/etc/services
> >
> >I also have the following which indicates that I modified /etc/fstab but
> >too late.
> >
> >lrwxrwxrwx 1 cyg_Simple cyg_Simple 0 Nov 25 15:54 /proc/cygdrive -> /
> >
> >If I were able to specify it at the start of setup this issue would not
> >be present.
> 
> It look like those links are created by /etc/postinstall/base-files-mketc.sh.
> You could try just removing /etc/hosts, /etc/protocols, /etc/services, and
> /etc/networks, being careful to delete the symlink and not the target, and
> then re-run /etc/postinstall/base-files-mketc.sh.done.  After modifying
> /etc/fstab, of course.

The right thing to do is to change the base-files package to utilize
/proc/cygdrive.  It's a vrtual symlink pointing to the actual cygdrive
prefix currently in use.  If these symlinks under /etc used the
/proc/cygdrive symlink, they would work all the time, independenly of
the actual cygdrive prefix.

Achim, any chance to tweak base-file accordingly?


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgpjp5NDLbpJ2.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]