X-Git-Url: https://git.decadent.org.uk/gitweb/?p=i-t-talk.git;a=blobdiff_plain;f=index.html;h=ac4bf8dcdbd574c46ecfdfca432137b590d057c8;hp=59e50ca9057f4fec58c597d85a58004e2153353d;hb=87718b61a5a10538802cfcb7320124692466cac1;hpb=333c89647d2bb479541eb707117284ab060e0a6f diff --git a/index.html b/index.html index 59e50ca..ac4bf8d 100644 --- a/index.html +++ b/index.html @@ -72,8 +72,182 @@ 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 +

    +
    + +
    +

    More information

    +
    @@ -117,6 +291,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 +