This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Ability to specify /cygdrive mount value in setup
- From: Achim Gratz <Stromeko at nexgo dot de>
- To: cygwin at cygwin dot com
- Date: Sun, 06 Dec 2015 10:47:37 +0100
- Subject: Re: Ability to specify /cygdrive mount value in setup
- Authentication-results: sourceware.org; auth=none
- References: <20151125140420 dot 12415 at web008 dot roc2 dot bluetie dot com> <1447966985 dot 20151125232513 at yandex dot ru> <56562105 dot 5040500 at gmail dot com> <6CF2FC1279D0844C9357664DC5A08BA21BC3C3B8 at msgb09 dot nih dot gov> <20151126134221 dot GN2755 at calimero dot vinschen dot de>
Corinna Vinschen writes:
> 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.
I've looked into it and I'd like to give that task back to the cygpath
maintainer. :-)
> Achim, any chance to tweak base-file accordingly?
At the moment I'm using $(/usr/bin/cygpath -S -u) to get the system
directory. Since the /cygdrive prefix could be anything, I'd either
have to first figure it out via $(dirname $(/usr/bin/cygpath -u C:))
since the output from mount is a bit unwieldy. Maybe we should just
force the cygdrive prefix to be /cygdrive for postinstall scripts
anyway.
But there really ought to be a way to simply have cygpath deliver the
canonical /proc/cygdrive path instead of whatever that link points to,
maybe that switch should be called "-U"?
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra
--
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