X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:cc:subject:date:message-id:references
	:in-reply-to:content-type:content-transfer-encoding
	:mime-version; q=dns; s=default; b=nIC7qb+z740QmAuT9eJZae8S/iEA+
	sbS+daiRXEoq//Lb+SQH4A8bY+bra0IhcrrvVySo4tg2qB4P6BoFqZF7dlCQyqjO
	vfpzeJgdn0VqxO4bt3l/B9j/wQD/7sPGgt+4ZS1C9JByr4Z3tcmv2idpvF7/lXIU
	xxFfh0yxXD2+oU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:cc:subject:date:message-id:references
	:in-reply-to:content-type:content-transfer-encoding
	:mime-version; s=default; bh=98NjjOxfGPA3gr7kgq3HWoMQ4GM=; b=NOO
	pg3YZOkGZhfmFf37FK7FPdn6zafehD1vRFHV+iptmp5arKIDLtWsyLsY7BuwBDO/
	lyhJyH0AhwTSiJZvJhcZqntNJsiAYQITrtrhWVRBvJNDZb8hrrKBTs7Nn1uHxl1u
	uIN89JhOWAlUG0zXvWctjNmrK2ZXN5qpZjO8/hmY=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: nihxway3out.hub.nih.gov
X-SBRS-Extended: Low
X-IronPortListener: Outbound_SMTP
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A2A+BQABBlZW/4lHKJxegzuBSMAngz2CUgKBQzwQAQEBAQEBAX8LhDQBAQEDARIoPxACAQgNCwoUEB8TJQIEDg0aiAQIo1qaXAEBAQEBAQQBAQEBAQEBHIZWhHyEW4NJgRUFkm+DaAEOjSaJN5MnOCuEBIUXAYEGAQEB
X-IPAS-Result: A2A+BQABBlZW/4lHKJxegzuBSMAngz2CUgKBQzwQAQEBAQEBAX8LhDQBAQEDARIoPxACAQgNCwoUEB8TJQIEDg0aiAQIo1qaXAEBAQEBAQQBAQEBAQEBHIZWhHyEW4NJgRUFkm+DaAEOjSaJN5MnOCuEBIUXAYEGAQEB
From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder@niaid.nih.gov>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
CC: cyg Simple <cygsimple@gmail.com>
Subject: RE: Ability to specify /cygdrive mount value in setup
Date: Wed, 25 Nov 2015 19:06:04 +0000
Message-ID: <6CF2FC1279D0844C9357664DC5A08BA21BC3C014@msgb09.nih.gov>
References: <5655DA23.1090908@gmail.com> <452598469.20151125193908@yandex.ru>
In-Reply-To: <452598469.20151125193908@yandex.ru>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id tAPJ6KFw008812

Andrey Repin sent the following at Wednesday, November 25, 2015 11:39 AM
>On 11/25/2015 10:56 AM, cyg Simple wrote:
>> I find /cygdrive/ just unbearable and I always change it to / after an
>> install.  The issue with this is that post install activities will
>> create symlinks using /cygdrive moniker so I must go change those if I
>> find them.
>
>Just which activities? I haven't seen any. And I do remap /cygdrive to /
>at all times.

I grepped everything in and under /etc for cygdrive.  The only hits were
/etc/fstab and /etc/postinstall/000-cygwin-post-install.sh.done, and the
latter was just setting up the former.  So I have to ask, what's creating
these shortcuts?

The idea that setup or the post-install scripts create symlinks that
point to things that are not under / and need to be accessed as, for
example, /cygdrive/d (= D:\) seems very strange.

>> Would it be possible for setup to ask for the value and
>> setup the /etc/fstab with the value?  Do others find this bit of annoying?
>
>You can precreate fstab, I think.

Maybe you could do a 3-step install?
  -  minimal install.
  -  fix fstab.
  -  install optional packages.

Another (partially tested) idea:  Create a folder in / named /cygdrive.
Then create a symlink in it for each drive, where the symlink points to
the drive and is named as the drive letter.  That seems to work for
some purposes, e.g., cd /cygdrive/d/dir/ goes to /d, though the CWD will
be /cygdrive/d/dir, not /d/DIR.  YMMV.

But pre-creating c:\cygwin\etc\fstab seems like the best option.

Good Luck.

- 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


