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


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.

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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