Nathan Angelacos wrote:
<snip>
But at that point, I question whether or not its just better to make the switch and use busybox's dpkg applet - and use the .deb package format. debian already has the pre-install, install, deinstall (forget the name) and post-deinstall scripts.
<snip>
Am I missing something really obvious?

The big thing to consider is the fact that .deb packages were not made to re-build the full OS at each reboot, ie: they presume persistent storage. If you're running your systems off a HDD, that might not be a problem for you, at which point I'd suggest you take a look at any of the micro debian-based distributions that are avaialble. It would probably be a lot easier to start with something designed to work with .deb files than to coerce LEAF into that role.


I'll also throw out a few pointers, in case you decide you want to stay in the leaf domain:

- You should not currently use lrpkg -i to install an upgraded package, as this will result in multiple instances of the package in various files in /var/lib/lrpkg. IIRC, this will make it impossible to backup the package (it's files will get listed in both the include and exclude lists, with exclude having priority), and cause other odd bugs in the packaging scripts, which were not really designed to load the same package more than once (excluding the initial PKGPATH behavior for multiple package locations, but that's actually just pulling data from more than one place, not installing the package more than once).

- If you're using partial backups to save your configuration, you can fairly easily manually upgrade a package by:
Extract the .lrp file into /root of the current filesystem
Re-extract the configuration .lrp to restore the over-written
config files


- If you wanted to be a bit cleaner, you could do a 'psudo' partial backup (just stash the partial backup in /tmp or something) prior to installing the updated package. See the backup scripts (and the .local file) for how to pull just the config data out of a package.

- Obviously, you could create a script that automates the above processes...most of the code even exists already, spread throughout the backup scripts, linuxrc, and maybe a few other places...

--
Charles Steinkuehler
[EMAIL PROTECTED]


------------------------------------------------------- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org

_______________________________________________
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to