On 07/31/2013 02:17 AM, Chris Larson
wrote:
Hi Chirst,
I've read the patches. But I haven't tried them out yet because
currently I can't afford the time ....
From my understanding, the core concept is to use
COMPLEMENTARY_GLOBS for *-volatile packages, and these -volatile
packages basically contain config files whose major purpose is to
create appropriate links at rootfs time, and these packages will be
installed only if 'read-only-rootfs' is in IMAGE_FEATURES. Right?
When I first came up with approach, I expected that there should be
a bunch of packages that might need this. But it turned out that in
OE-core, only the initscripts package needed this. So let's call it
a fall-back approach. If some package *really* needs this, then we
write a config file under /etc/default/readonly. By really, I mean,
maybe some packages could simply be patched to work in a read-only
rootfs. And note that I added a function in read-only-rootfs-hook.sh
which is used to check whether a specific directory is on a
read-only partition. This is because it's possible that users may
use customized fstab which, for example, mounts a writable media
over /var. We should take this situation into consideration.
That's also partly the reason that I dropped my 'lighttpd: xxx'
patch. Moving its log location to some volatile storage to omit
errors at system boot-up doesn't make the situation any better,
because the /www directory is still not writable. So I would assume
that if a user if using a read-only rootfs and he's using his system
to hold a web, he should at least have some writable storage to
store the data.
I have very limited knowledge on systemd and sysvinit, but still I'm
not sure about this change.
In my opinion, maybe we should make sysv and systemd have as little
effect on each other as possible.
I'm afraid that this change will bring some potential problems that
are not spotted at first.
Best Regards,
Chen Qi