Skip to topic | Skip to bottom
Home
Lily
Lily.CutACorer1.5 - 07 Aug 2003 - 11:30 - ThePrisonertopic end

Start of topic | Skip to actions

How do I cut a core?

Cutting a core removes all the user-specific and site-specific information in the core, and reduces it to a barebones core that has all the default objects and the root user.

All released cores are made with this process. It is also helpful for integrating changes from a non standard core into mainline development.

  1. grab a copy of the core's .db file, put it in a separate directory, along with a copy of moo and restart.sh
  2. run restart.sh with the core running on a different port.
  3. login as root.
  4. use /passwd to set the root password to something known. (and NOT your private corporation's root lily passwd.)
  5. be very sure you're on the right core.
  6. No, really.
  7. run $SETUP CORE-CONFIGURE
  8. You may see several BOOM:! diagnostic messages that can be ignored. technical note
  9. $shutdown the core.
  10. You now have a core with a .new extension on it. this is your "cut" core.


Technical Notes:

Those BOOM diagnostic messages are ignorable. At this stage they can even be removed. I added them because I was having trouble tossing objects linearly when the object system is really hierarchical. This has been fixed, inasmuch as is possible, but there are still places where this linear v hierarchical recycling problem still occurs. BOOM just means "we did it and trapped the error."


to top


You are here: Lily > DeveloperGuide > DeveloperFAQ > CutACore

to top

Copyright © 1999-2009 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding this site? Contact Christopher Masto <chris@masto.com>.