mikshaw
Group: Members
Posts: 4856
Joined: July 2004 |
|
Posted: Sep. 05 2005,00:38 |
|
Quote | My solution was all of like 6 lines and 1 new file |
I posted before seeing your last post...that response was to your first reply.
Quote | mydsl-install is _not_ called during bootup as far as I can determine from source |
It is if you are auto-loading myDSL packages. dsl-config calls mydsl-load if there are myDSL apps in the root, or if you specify a "mydsl=" boot option, which in turn calls mydsl-install. If you are not auto-loading myDSL apps, there's no reason to run the post-install.
Quote | What I offer is far from a "rewrite" of myDSL |
I see that now that I look at the script. As i said before, i was responding to what you had posted earlier, and it sounded to me like a lot of extra work just to run one more script.
Quote | sometimes a script can still fail... unless it's a pristine CD one can't guarantee what environment it's going into |
I agree. I don't have much development experience beyond making a few myDSL packages, so I really don't know what it would take to make things bug-free.
Quote | did you like the idea of making them unexecutable when finished rather than deleting? |
I don't really have a preference...I just thought maybe the idea could be expanded or modified in the future. The script i made overwrites the tmp file with each new package anyway, so i guess it doesn't matter at this point.
Quote | It's main purpose is for dealing with .dsl packages that are subsequentially installed... so mkwritable is going to get called soon enough anyways |
Not necessarily. As I said i don't use many .dsl extensions, and when I do it's infrequently...just occasionally boot into XFree for a game or with some dev tools. Usually I use only tar.gz or uci extensions. It's not a huge difference in memory usage, but I figure why bother setting it up to run mkwriteable when there is no need? The files in your extension can be written to the system without running mkwriteable.../etc isn't in ramdisk, but it does allow a limited amount of writing.
It looks like your script is basically the same as mine, except 1) it runs at boottime regardless of whether or not it's needed, and 2) it runs all files found in the mydsl.postinstall directory. Keep in mind that you may be running unnecessary commands with both differences. The boot without myDSL apps that i mentioned is one. The other is the fact that mydsl-install is run with each myDSL application...you run all post-install scripts every time a myDSL package is installed.
-------------- http://www.tldp.org/LDP/intro-linux/html/index.html
|