On Tue, 2007-03-13 at 21:51 +0100, Tilman Sauerbeck wrote:
Hi, I attached a patch to the "rc" package that will install /etc/rc.firstboot. That script is run by rc if found. Afterwards, /etc/rc.firstboot is deleted, so it really is only executed once. I deliberately omitted the rm-ing from the diff so testing is easier ;))
I'd like more review of this, please. Let me know if there's any reason why this wouldn't fix the missing font files problem after the installation.
The proper and generic solution would IMHO be to make pkgutils support scriptlets like pretty much any other package manager out there. Many packages could benefit from it and some simply don't work without them. It could be a single executable taking 2 arguments, <pre|post> <add|rm|up> - perhaps upgrades could be shaved off by doing rm + add but in some cases that would cause double work (e.g. re-generating caches) Another solution would be to include a pre-configured prt-get on the CD image and use that to install pre-compiled packages from the CD. That would obviously require that the ports used to build the packages are bundled too, but that would be a nice addition to the CD anyway. (Especially together with a Makefile so you can create your own CD when you need a newer kernel or additional packages on it (such as lvm2) to boot the system.)