"Angelacos, Nathan" wrote:

> load_disk_package contains this line:
> 
>         [ "${PKG##*/}" = "${CONFIG##*/}" ] && return 0
> 
> which if I read correctly, exits if the current package is the config
> package. That seems like the right thing to do (although we do load root.lrp
> twice.)  However, the consequence is that the configuration lrp won't be
> loaded from clean_up - load_all_packages calls load_disk_package.

This is as it should be (except root.lrp should NOT be loaded twice). 
load_all_packages should only be called to load all specified packages
on a "packages xxxx" line.

When the system is completely done and is about to exit, THEN it should
extract the file in $TMPCONFIG.  What happens is the script copies the
config.lrp (or whatever) over to /tmp and stores it until all packages
are loaded from all sources - THEN it overwrites the configuration files
with those in /tmp/config.lrp.  Note that at this point the original
disk (source) containing config.lrp could be anywhere - removed, down,
whatever.  That's why /tmp/config.lrp is made.

> Is the correct solution to delete the line above in "load_disk_package" and
> let the config.lrp load twice, like root.lrp is?

No, the correct solution is to remove root.lrp, too - to fix THAT
problem :)

I did some more work on main.load; I'll upload it soon.

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

Reply via email to