From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Ability to specify /cygdrive mount value in setup
Date: Thu, 26 Nov 2015 13:52:00 -0000 [thread overview]
Message-ID: <20151126134221.GN2755@calimero.vinschen.de> (raw)
In-Reply-To: <6CF2FC1279D0844C9357664DC5A08BA21BC3C3B8@msgb09.nih.gov>
[-- Attachment #1: Type: text/plain, Size: 2335 bytes --]
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 #2: Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-11-26 13:42 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-25 19:06 Charlie
2015-11-25 20:35 ` Andrey Repin
2015-11-25 21:01 ` cyg Simple
2015-11-25 22:44 ` Buchbinder, Barry (NIH/NIAID) [E]
2015-11-26 13:52 ` Corinna Vinschen [this message]
2015-11-26 18:06 ` Achim Gratz
2015-11-26 20:08 ` Corinna Vinschen
2015-11-29 18:25 ` cyg Simple
2015-11-29 20:15 ` cyg Simple
2015-12-06 9:47 ` Achim Gratz
2015-12-06 14:10 ` Corinna Vinschen
2015-12-06 14:28 ` Achim Gratz
2015-12-06 17:01 ` cyg Simple
2015-12-06 17:16 ` Achim Gratz
2015-12-06 17:12 ` Achim Gratz
2015-12-06 19:02 ` Corinna Vinschen
2015-12-06 19:07 ` Achim Gratz
-- strict thread matches above, loose matches on Subject: below --
2015-11-25 16:24 cyg Simple
2015-11-25 16:50 ` Eliot Moss
2015-11-25 17:39 ` Andrey Repin
2015-11-25 19:17 ` Buchbinder, Barry (NIH/NIAID) [E]
2015-11-25 18:51 ` Roger Wells
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=20151126134221.GN2755@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--cc=cygwin@cygwin.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).