This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: File format problem after updatin to 1.7.1
- From: Jeremy Bopp <jeremy at bopp dot net>
- To: cygwin at cygwin dot com
- Date: Fri, 19 Feb 2010 10:50:16 -0600
- Subject: Re: File format problem after updatin to 1.7.1
- References: <8CCC8F85C5F2784387A32FAD835FB4E602DA8EE5F9@server03> <4B62F2EA.3040208@bopp.net> <416096c61001290707j3250273alcb439fdb8760e38a@mail.gmail.com> <4B62FB30.3000909@bopp.net> <loom.20100218T130418-858@post.gmane.org>
On 2/18/2010 6:40 AM, Marta Ghidella wrote:
> Jeremy Bopp <jeremy <at> bopp.net> writes:
>>
>> I've not used that script before, but from that text it seems that the
>> script can only migrate user mounts, not system mounts. I get the
>> impression that this problem is resulting from system mounts going binary.
>>
>> -Jeremy
>>
>
> Hello Jeremy:
>
> I've just updated to cygwin 1.7.1 and had the same problem described here.
> But couldn't get the solution...
>
> The key is in your paragraph, thet's very true.
>
> But, how do we do if we want the system mounts to be text?
> System mounts cannot be modified by mount; I tried adding them to fstab, but the
> operation is not allowed.
The only mount specification in /etc/fstab which appears to be ignored
is the one for /. I can't say why that is so, and I don't know a way
around that fact. I think Corinna manages that.
You have at least two possible workarounds available:
1) Set the SHELLOPTS environment variable to "igncr" so that Bash will
ignore the DOS line endings, or
2) Create a new text mode mount and then use your scripts from that new
mount.
Option 1 is only good for Bash, so if you have other programs which
choke on the DOS line endings, it's not going to work for you. Option 2
may require a process change for you, but it should work as long as your
scripts live in the new mount and are referenced via that mount's path.
-Jeremy
--
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