public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Max Bowsher" <maxb@ukf.net>
To: "Qwer Zxcv" <partner4progress@yahoo.com>
Cc: <cygwin@cygwin.com>
Subject: Re: rollback procedure, was: what determines cygwin path?
Date: Sat, 26 Apr 2003 02:48:00 -0000	[thread overview]
Message-ID: <003b01c30b86$e8855040$78d96f83@pomello> (raw)
In-Reply-To: <20030425234010.84929.qmail@web14805.mail.yahoo.com>

Qwer Zxcv wrote:
> Qwer Zxcv wrote:
>>>>> So what I'd like to know is, how is cygwin's path determined?
>>>>> (Apparently not entirely by the windows path, at least not by
>>>>> default.) And how do I fix it?
>
> Max Bowsher wrote:
>>>> Windows + /etc/profile + any user customisation.
>
> Max Bowsher wrote (later):
>>> Anything you yourself have deliberately changed - e.g. ~/.profile,
>>> ~/.bash_profile, etc.
>
> OK, so to enable successful rollback, I should be sure to keep these
> in a home directory out of the cygwin tree, correct?

Well, I keep my home in /home, but yes, you can keep them out of the cygwin
tree if you want.

> I'm presuming
> setup.exe is not going to try to read or write them.

Correct.

> Also:
>
> Igor Pechtchanski wrote:
>> The "mount.exe" program will run even if the mounts are all gone (as
>> long as it's invoked via an absolute path or from the current
>> directory and cygwin1.dll is in the same directory).
>
>> It's been stated time and time again on this list that going to the
>> registry is an unsafe and nonportable way of manipulating the mount
>> table.
>
> OK, but please keep in mind that (I suspect) lots of folks only read
> this list when they're having problems :-)
>
>> Especially when mount.exe does a very adequate job. There already
>> are plans (and code, AFAIK, though not in the production system) to
>> store the mount table in a file instead of in the registry. Please
>> manipulate the mount table only by using mount.exe (or setup.exe).
>
> Will do. I even learned what Max meant by 'mount -m' :-)
>
> So, to ensure roll-back-ability, one should:
>
> *** As part of good cygwin hygeine:
>
> * Create/use a home directory outside the cygwin install tree.

Not really. Its quite safe (and IMO neater) to leave your home in /home,
provided you don't decide to delete your entire Cygwin tree and forget /home
is inside it.

> * Ensure cygwin references precede windows references in one's windows
>   path (Control Panel>System>Advanced>Environment Variables>System
>   Variables>Path).

Not really. Only if you make regular use of Cygwin tools from non-Cygwin
shells.

> * Ensure customizations occur only in dotfiles in one's home
>   directory.

This IS a good idea. Personally, I keep config files that I change inside my
home dir, and symlink to them. That way I can delete everything except /home
and /usr/local if I want to do a clean install.

> *** Immediately before installing any new version:
>
> * Note any customizations that affect $PATH. This could be done by,
>   e.g., running
>
> find . -type f | grep -ni 'path'
>
>   from one's homedir.
>
> * Know where cygwin1.dll is installed, and ensure that 'mount' runs
>   from that directory.
>
> * Record the output of "mount -m", i.e. the mount commands needed to
>   restore one's currently-working mount points.
>
> *** To rollback:
>
> 0 Change windows path to point (only) to the old version. Cygwin
>   references should precede windows references.
>
> 1 Run 'mount' using the previously recorded commands.
>
> 2 Find or recreate a shortcut to one's old bash-running batchfile.
>
> 3 Run bash, check for weirdness.
>
> 4 'cygcheck -svr', check for weirdness.
>
> Correct? Am I missing anything major? Did I get anything else wrong?

Why not just upgrade your Cygwin install, and reinstall previous package
versions if something breaks? Unless you are running a mission-critical
server, I think you are making work for yourself.

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

  reply	other threads:[~2003-04-26  0:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-25 21:38 [newbie] how to install cygwin by version? and fix breakage? Qwer Zxcv
2003-04-25 22:05 ` Max Bowsher
2003-04-25 22:34   ` Qwer Zxcv
2003-04-25 22:38     ` Igor Pechtchanski
2003-04-25 23:52       ` Qwer Zxcv
2003-04-25 23:06   ` what determines cygwin path? Qwer Zxcv
2003-04-25 23:41     ` Max Bowsher
2003-04-25 23:59       ` Qwer Zxcv
2003-04-26  0:00         ` Igor Pechtchanski
2003-04-26  0:29           ` rollback procedure, was: " Qwer Zxcv
2003-04-26  0:38             ` Igor Pechtchanski
2003-04-26  0:10         ` Max Bowsher
2003-04-26  2:04           ` rollback procedure, was: " Qwer Zxcv
2003-04-26  2:48             ` Max Bowsher [this message]
2003-04-26  3:09               ` rollback procedure Qwer Zxcv
2003-04-26  4:53                 ` Igor Pechtchanski
2003-04-26 15:18                   ` setup re-install, or rollforward procedure? Qwer Zxcv
2003-04-26 15:48                     ` Elfyn McBratney
2003-04-26  3:03             ` rollback procedure, was: what determines cygwin path? Igor Pechtchanski

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='003b01c30b86$e8855040$78d96f83@pomello' \
    --to=maxb@ukf.net \
    --cc=cygwin@cygwin.com \
    --cc=partner4progress@yahoo.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).