On 27/07/2014 15:30, Joan Picanyol i Puig wrote:
> No magic wand here, I just see it as scripts all the way down...
Of course it's scripts. But those scripts are not portable. You can't
make a tmpfs on FreeBSD the way you make one on Linux.
> Creating and mounting a tmpfs and bringing up the network look pretty
> much the same to me: initialization tasks orchestrated by scripts
> invoking userland binaries. At this point in booting, if something fails
> it's watchdog time...
Yes, it's easy, but it still cannot be shipped in the s6 package if I
want it to be system-agnostic.
> Regarding read-only root fs, isn't it just a matter of restarting
> svscan's logger pointing to stable storage once it is up & running?
The logger is not a problem, but you still need a read-write place you
can access before starting s6-svscan: the scan directory itself needs to
be read-write. There's no starting s6-svscan if you don't have a read-write
directory at all, for several reasons; and since you haven't started the
one-time init yet, there are no disks. So there needs to be a tmpfs
creation in /sbin/init, and I don't know how to do that portably.
--
Laurent
Received on Sun Jul 27 2014 - 15:39:01 UTC