Fixing the font files problem
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. Thanks, Tilman -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
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.
Thanks, Tilman
What about putting firstboot in rc.d and putting it as a default service in rc.conf? -- Lucas Hazel <lucas@die.net.au>
Lucas Hazel [2007-03-14 14:53]:
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.
Thanks, Tilman
What about putting firstboot in rc.d and putting it as a default service in rc.conf?
So it would be run on every boot? Seems like overkill to me. Regards, Tilman -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
Hi, On Tue, Mar 13, 2007 at 09:51:59PM +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 ;))
Please, don't rm it. chmod -x That will not hurt pkg database.
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.
Thanks, Tilman
-- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
-- Anton (irc: bd2)
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.)
On Wed, 2007-03-14 at 23:22 +0100, Mark Rosenstand wrote:
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)
Or a single argument using a dash for separation, so one could do efficient one-line scripts like case "$1" in post-*) fc-cache -s ;; esac
On Wed, Mar 14, 2007 at 11:22:06PM +0100, Mark Rosenstand wrote:
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
You mean like pkg-get? -- Lucas Hazel <lucas@die.net.au> ================================================= "Clothes make the man. Naked men are rarely taken seriously, or given employment." (Mark Twain) =================================================
participants (5)
-
Anton Vorontsov
-
Lucas
-
Lucas Hazel
-
Mark Rosenstand
-
Tilman Sauerbeck