Difference between revisions of "Initramfs zfs boot"

From copec
Jump to: navigation, search
Line 8: Line 8:
  
 
==== (External) initramfs init ====
 
==== (External) initramfs init ====
* Create directories
+
* Create
 
** /dev
 
** /dev
 
** /root
 
** /root
Line 19: Line 19:
 
** /sys
 
** /sys
 
** /proc
 
** /proc
 +
** /dev
 +
** /dev/pts
 +
** /run
 +
 +
* Create
 +
** /run/initramfs
 +
 +
* Export

Revision as of 12:01, 24 January 2017

Overview

Both Debian and Ubuntu fail to boot when there is an arbitrarily more complex zpool than a single vdev that contains the bootfs.

Notes on Boot Process

  • The linux kernel is initially bootstrapped.
  • The compiled-in initramfs is mounted and executed.
    • It mounts the external initramfs; Deletes everything under its own initramfs; Executes the external initramfs /init

(External) initramfs init

  • Create
    • /dev
    • /root
    • /sys
    • /proc
    • /tmp
    • /var/lock
  • Mount
    • /sys
    • /proc
    • /dev
    • /dev/pts
    • /run
  • Create
    • /run/initramfs
  • Export