]> git.proxmox.com Git - mirror_zfs.git/blobdiff - copy-builtin
initramfs: setup keymapping and video for prompts
[mirror_zfs.git] / copy-builtin
index c108cfc6733e32de587a43488ba6c1b27d9eaacd..ee3b081cae015c70f192f1e5ae945946babe3234 100755 (executable)
@@ -12,9 +12,16 @@ usage()
 KERNEL_DIR="$(readlink --canonicalize-existing "$1")"
 
 MODULES=()
+
+# When integrated in to a monolithic kernel the spl module must appear
+# first.  This ensures its module initialization function is run before
+# any of the other module initialization functions which depend on it.
+MODULES+="spl"
+
 for MODULE_DIR in module/* module/os/linux/*
 do
        [ -d "$MODULE_DIR" ] || continue
+       [ "spl" = "${MODULE_DIR##*/}" ] && continue
        [ "os" = "${MODULE_DIR#*/}" ] && continue
        MODULES+=("${MODULE_DIR#*/}")
 done