Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] disaster recovery

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: "David Brown" <dmlb2000 AT gmail.com>
  • To: "Thomas Orgis" <thomas-forum AT orgis.org>
  • Cc: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] disaster recovery
  • Date: Tue, 13 Mar 2007 08:59:38 -0700

The second harmful effect here is that the whole shadow cast fails,
combined with castfs, I guess. Because without castfs, no installed
files would be missing (am I wrong here?). the installation of
important stuff already happened.
It would be much saner if the dispelled shadow would be automatically
restored if the updating cast fails at some stage ... or not be
dispelled before the install is totally done inside the castfs.

Yeah, kinda... castfs does provide a completely transparent
environment to run in. This means that (ideally) the entire system
should act as it would without castfs. Another way of saying this is
when you mount castfs it provides an exact copy of your system
(without any copying) at the mount location so you can chroot to it
and mess around. That is exactly how the install phase of cast works
with stage root enabled.

chroot $STAGE_DIRECTORY/MOUNT delve INSTALL $SPELL

The only partial root is after the install is done and during the
POST_INSTALL stage where the spell's cwd is $STAGE_DIRECTORY and
people can mess with the installed files before they are moved to the
system.

Yeah there is a bug for adding documentation for stage root, but I
need to figure out some of the bugs first.

- David Brown




Archive powered by MHonArc 2.6.24.

Top of Page