delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/13/13:04:30

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Mon, 13 Nov 2000 12:47:55 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: setup drops mount?
Message-ID: <20001113124755.S7424@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20001113173457 DOT 2285 DOT qmail AT web110 DOT yahoomail DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <20001113173457.2285.qmail@web110.yahoomail.com>; from earnie_boyd@yahoo.com on Mon, Nov 13, 2000 at 09:34:56AM -0800

On Mon, Nov 13, 2000 at 09:34:56AM -0800, Earnie Boyd wrote:
>--- DJ Delorie <dj AT delorie DOT com> wrote:
>> 
>> > D:                  /var                system       binmode
>> > 
>> > the last entry is not there anymore when setup finishes.
>> 
>> There are certain key mounts that setup removes always, /var is one of
>> them.  If you look in install.cc, you'll see the whole list:
>> 
>>   remove_mount ("/");
>>   remove_mount ("/usr");
>>   remove_mount ("/usr/bin");
>>   remove_mount ("/usr/lib");
>>   remove_mount ("/var");
>>   remove_mount ("/lib");
>>   remove_mount ("/bin");
>>   remove_mount ("/etc");
>> 
>>   create_mount ("/", root_dir, istext, issystem);
>>   create_mount ("/usr/bin", concat (root_dir, "/bin", 0), istext, issystem);
>>   create_mount ("/usr/lib", concat (root_dir, "/lib", 0), istext, issystem);
>> 
>> This is done to ensure that the resulting setup works smoothly for all
>> users.
>
>Should we now modify this to conditionally remove these based on whether the
>installation is into a new root directory?  If I'm updating I would be very
>upset to learn that my now mounted /bin directory had been removed.  I have it
>mounted per CGF's suggestion for cygexec bit switch.

Actually, I suppose that setup should set the cygexec bit for /bin and /usr/bin.
It's been valid for a number of releases of cygwin.

The only problem is that mingw programs like strace.exe won't work correctly,
so they have to be "mounted" separately.

mount -f -b -x c:\cygwin\bin\strace.exe /bin/strace.exe
mount -f -b -x c:\cygwin\bin\strace.exe /usr/bin/strace.exe

Not too pretty...  Maybe we need another bin directory that holds non-cygwin
executables.  cygcheck.exe really shouldn't be a cygwin binary so it should
go there, too.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019