X-Git-Url: https://git.decadent.org.uk/gitweb/?p=i-t-talk.git;a=blobdiff_plain;f=index.html;h=fcc5c0eaaf55b0740fbbde92fc342a7786a99d20;hp=59e50ca9057f4fec58c597d85a58004e2153353d;hb=a111cd981debea91e5b7c7787e22609e01bc12c8;hpb=333c89647d2bb479541eb707117284ab060e0a6f diff --git a/index.html b/index.html index 59e50ca..fcc5c0e 100644 --- a/index.html +++ b/index.html @@ -72,12 +72,167 @@ it can't read them from the root filesystem
  • - Solution: boot loader provides a bundle of files to the - kernel + Solution: boot loader provides a bundle of files + (initramfs image) to the kernel
  • +
    + +
    + +
    +

    How the kernel uses an initramfs

    + +
    + +
    +

    Overview

    + +
    + +
    +

    The init system

    + +
    + +
    +

    Problems (1)

    +

    + Root filesystem is not enough. Depenency-based boot means + there's no clean split between root and /usr. So + initramfs should mount it (implemented in 0.117). However: +

    + +
    + +
    +

    Problems (2)

    +

    + Device discovery by kernel is asynchronous. But that's + why we have udev, right? +

    +

    + Unfortunately not everything needed for device setup is + or can be in udev hooks (e.g. cryptsetup requires interaction) +

    +

    + Lots of hacks used (while ... do sleep... done, + udevadm settle in too many places), and they still + sometimes fail + (#616689 and merged + bugs) +

    +

    + Ubuntu has a somewhat better approach but we still haven't merged + it back... +

    +

    + ...in fact, Debian and Ubuntu branches have been diverging for + about 5 years +

    +
    +

    Questions?

    @@ -117,6 +272,9 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> +
  • + Xzibit promotional photo © Retna, used for purpose of parody +