Hi all,

I was discussing the changes to preinit, mount_root, and and firstboot
that I am working on, with Jo (xMff), specifically to ask where he
thought I should put code that was common to the reworked mount_root and
firstboot.

In that discussion we came to the conclusion that non-config files
(i.e.g code that's integral to the system) really shouldn't be in /etc
because backing up /etc, flashing and then restore /etc could
potentially overwrite files that are required code in the system.

Therefore I'm planning on putting my shared code under /lib/boot (and
preinit functions (where order matters) under /lib/boot/preinit, and
firstboot (likewise) under /lib/boot/firstboot).  However there is a
change that Jo and I thought would be a good idea, but which definitely
requires discussion, and that is putting /etc/functions.sh
under /lib/functions/functions.sh (or somesuch), with a symlink
from /etc/function.sh.

Also /lib/functions could be used for shared functions that are not used
often enough to really belong in functions.sh, but make sense to be
shared.

In the same vein, though I didn't think of this until Jo when home, is
to move /etc/preinit to /lib/boot/preinit.sh or somesuch.  That would be
a major change though since it's called as init by all the platforms.
And not as necessary for squashfs or other readonly filesystems, when
doing backup/restore of /etc.

What do the rest of you think, of making the /lib move for a)
functions.sh and b) preinit?

Regards,

Daniel

-- 
And that's my crabbing done for the day.  Got it out of the way early, 
now I have the rest of the afternoon to sniff fragrant tea-roses or 
strangle cute bunnies or something.   -- Michael Devore
GnuPG Key Fingerprint 86 F5 81 A5 D4 2E 1F 1C      http://gnupg.org
The C Shore (Daniel Dickinson's Website) http://cshore.is-a-geek.com

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to