€•;Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ$/translations/zh_CN/admin-guide/init”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/zh_TW/admin-guide/init”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/it_IT/admin-guide/init”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/ja_JP/admin-guide/init”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/ko_KR/admin-guide/init”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/sp_SP/admin-guide/init”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ9Explaining the "No working init found." boot hang message”h]”hŒ=Explaining the “No working init found.†boot hang message”…””}”(hh¨hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hh£hžhhŸŒ>/var/lib/git/docbuild/linux/Documentation/admin-guide/init.rst”h KubhŒ field_list”“”)”}”(hhh]”hŒfield”“”)”}”(hhh]”(hŒ field_name”“”)”}”(hŒAuthors”h]”hŒAuthors”…””}”(hhÃhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÁhh¾hŸh¶h KubhŒ field_body”“”)”}”(hŒYAndreas Mohr Cristian Souza ”h]”hŒ paragraph”“”)”}”(hŒXAndreas Mohr Cristian Souza ”h]”hŒXAndreas Mohr Cristian Souza ”…””}”(hhÙhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h×hŸh¶h KhhÓubah}”(h]”h ]”h"]”h$]”h&]”uh1hÑhh¾ubeh}”(h]”h ]”h"]”h$]”h&]”uh1h¼hŸh¶h Khh¹hžhubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hh£hžhhŸh¶h KubhØ)”}”(hŒzThis document provides some high-level reasons for failure (listed roughly in order of execution) to load the init binary.”h]”hŒzThis document provides some high-level reasons for failure (listed roughly in order of execution) to load the init binary.”…””}”(hhùhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h×hŸh¶h Khh£hžhubhŒenumerated_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒŽ**Unable to mount root FS**: Set "debug" kernel parameter (in bootloader config file or CONFIG_CMDLINE) to get more detailed kernel messages. ”h]”hØ)”}”(hŒ**Unable to mount root FS**: Set "debug" kernel parameter (in bootloader config file or CONFIG_CMDLINE) to get more detailed kernel messages.”h]”(hŒstrong”“”)”}”(hŒ**Unable to mount root FS**”h]”hŒUnable to mount root FS”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubhŒv: Set “debug†kernel parameter (in bootloader config file or CONFIG_CMDLINE) to get more detailed kernel messages.”…””}”(hjhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1h×hŸh¶h K hjubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj hžhhŸh¶h Nubj )”}”(hXB**init binary doesn't exist on rootfs**: Make sure you have the correct root FS type (and ``root=`` kernel parameter points to the correct partition), required drivers such as storage hardware (such as SCSI or USB!) and filesystem (ext3, jffs2, etc.) are builtin (alternatively as modules, to be pre-loaded by an initrd). ”h]”hØ)”}”(hXA**init binary doesn't exist on rootfs**: Make sure you have the correct root FS type (and ``root=`` kernel parameter points to the correct partition), required drivers such as storage hardware (such as SCSI or USB!) and filesystem (ext3, jffs2, etc.) are builtin (alternatively as modules, to be pre-loaded by an initrd).”h]”(j)”}”(hŒ'**init binary doesn't exist on rootfs**”h]”hŒ%init binary doesn’t exist on rootfs”…””}”(hj>hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj:ubhŒ3: Make sure you have the correct root FS type (and ”…””}”(hj:hžhhŸNh NubhŒliteral”“”)”}”(hŒ ``root=``”h]”hŒroot=”…””}”(hjRhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhj:ubhŒÞ kernel parameter points to the correct partition), required drivers such as storage hardware (such as SCSI or USB!) and filesystem (ext3, jffs2, etc.) are builtin (alternatively as modules, to be pre-loaded by an initrd).”…””}”(hj:hžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1h×hŸh¶h K hj6ubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj hžhhŸh¶h Nubj )”}”(hX**Broken console device**: Possibly a conflict in ``console= setup`` --> initial console unavailable. E.g. some serial consoles are unreliable due to serial IRQ issues (e.g. missing interrupt-based configuration). Try using a different ``console= device`` or e.g. ``netconsole=``. ”h]”hØ)”}”(hX**Broken console device**: Possibly a conflict in ``console= setup`` --> initial console unavailable. E.g. some serial consoles are unreliable due to serial IRQ issues (e.g. missing interrupt-based configuration). Try using a different ``console= device`` or e.g. ``netconsole=``.”h]”(j)”}”(hŒ**Broken console device**”h]”hŒBroken console device”…””}”(hjxhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjtubhŒ: Possibly a conflict in ”…””}”(hjthžhhŸNh NubjQ)”}”(hŒ``console= setup``”h]”hŒconsole= setup”…””}”(hjŠhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjtubhŒ¨ --> initial console unavailable. E.g. some serial consoles are unreliable due to serial IRQ issues (e.g. missing interrupt-based configuration). Try using a different ”…””}”(hjthžhhŸNh NubjQ)”}”(hŒ``console= device``”h]”hŒconsole= device”…””}”(hjœhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjtubhŒ or e.g. ”…””}”(hjthžhhŸNh NubjQ)”}”(hŒ``netconsole=``”h]”hŒ netconsole=”…””}”(hj®hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjtubhŒ.”…””}”(hjthžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1h×hŸh¶h Khjpubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj hžhhŸh¶h Nubj )”}”(hŒê**Binary exists but dependencies not available**: E.g. required library dependencies of the init binary such as ``/lib/ld-linux.so.2`` missing or broken. Use ``readelf -d |grep NEEDED`` to find out which libraries are required. ”h]”hØ)”}”(hŒé**Binary exists but dependencies not available**: E.g. required library dependencies of the init binary such as ``/lib/ld-linux.so.2`` missing or broken. Use ``readelf -d |grep NEEDED`` to find out which libraries are required.”h]”(j)”}”(hŒ0**Binary exists but dependencies not available**”h]”hŒ,Binary exists but dependencies not available”…””}”(hjÔhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjÐubhŒ@: E.g. required library dependencies of the init binary such as ”…””}”(hjÐhžhhŸNh NubjQ)”}”(hŒ``/lib/ld-linux.so.2``”h]”hŒ/lib/ld-linux.so.2”…””}”(hjæhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjÐubhŒ missing or broken. Use ”…””}”(hjÐhžhhŸNh NubjQ)”}”(hŒ!``readelf -d |grep NEEDED``”h]”hŒreadelf -d |grep NEEDED”…””}”(hjøhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjÐubhŒ* to find out which libraries are required.”…””}”(hjÐhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1h×hŸh¶h KhjÌubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj hžhhŸh¶h Nubj )”}”(hX_**Binary cannot be loaded**: Make sure the binary's architecture matches your hardware. E.g. i386 vs. x86_64 mismatch, or trying to load x86 on ARM hardware. In case you tried loading a non-binary file here (shell script?), you should make sure that the script specifies an interpreter in its shebang header line (``#!/...``) that is fully working (including its library dependencies). And before tackling scripts, better first test a simple non-script binary such as ``/bin/sh`` and confirm its successful execution. To find out more, add code ``to init/main.c`` to display kernel_execve()s return values. ”h]”hØ)”}”(hX^**Binary cannot be loaded**: Make sure the binary's architecture matches your hardware. E.g. i386 vs. x86_64 mismatch, or trying to load x86 on ARM hardware. In case you tried loading a non-binary file here (shell script?), you should make sure that the script specifies an interpreter in its shebang header line (``#!/...``) that is fully working (including its library dependencies). And before tackling scripts, better first test a simple non-script binary such as ``/bin/sh`` and confirm its successful execution. To find out more, add code ``to init/main.c`` to display kernel_execve()s return values.”h]”(j)”}”(hŒ**Binary cannot be loaded**”h]”hŒBinary cannot be loaded”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubhX!: Make sure the binary’s architecture matches your hardware. E.g. i386 vs. x86_64 mismatch, or trying to load x86 on ARM hardware. In case you tried loading a non-binary file here (shell script?), you should make sure that the script specifies an interpreter in its shebang header line (”…””}”(hjhžhhŸNh NubjQ)”}”(hŒ ``#!/...``”h]”hŒ#!/...”…””}”(hj0hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjubhŒ) that is fully working (including its library dependencies). And before tackling scripts, better first test a simple non-script binary such as ”…””}”(hjhžhhŸNh NubjQ)”}”(hŒ ``/bin/sh``”h]”hŒ/bin/sh”…””}”(hjBhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjubhŒB and confirm its successful execution. To find out more, add code ”…””}”(hjhžhhŸNh NubjQ)”}”(hŒ``to init/main.c``”h]”hŒto init/main.c”…””}”(hjThžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjubhŒ+ to display kernel_execve()s return values.”…””}”(hjhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1h×hŸh¶h Khjubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj hžhhŸh¶h Nubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ)”uh1jhh£hžhhŸh¶h K ubhØ)”}”(hŒêPlease extend this explanation whenever you find new failure causes (after all loading the init binary is a CRITICAL and hard transition step which needs to be made as painless as possible), then submit a patch to LKML. Further TODOs:”h]”hŒêPlease extend this explanation whenever you find new failure causes (after all loading the init binary is a CRITICAL and hard transition step which needs to be made as painless as possible), then submit a patch to LKML. Further TODOs:”…””}”(hj}hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h×hŸh¶h K&hh£hžhubhŒ bullet_list”“”)”}”(hhh]”(j )”}”(hŒáImplement the various ``run_init_process()`` invocations via a struct array which can then store the ``kernel_execve()`` result value and on failure log it all by iterating over **all** results (very important usability fix).”h]”hØ)”}”(hŒáImplement the various ``run_init_process()`` invocations via a struct array which can then store the ``kernel_execve()`` result value and on failure log it all by iterating over **all** results (very important usability fix).”h]”(hŒImplement the various ”…””}”(hj”hžhhŸNh NubjQ)”}”(hŒ``run_init_process()``”h]”hŒrun_init_process()”…””}”(hjœhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhj”ubhŒ9 invocations via a struct array which can then store the ”…””}”(hj”hžhhŸNh NubjQ)”}”(hŒ``kernel_execve()``”h]”hŒkernel_execve()”…””}”(hj®hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhj”ubhŒ: result value and on failure log it all by iterating over ”…””}”(hj”hžhhŸNh Nubj)”}”(hŒ**all**”h]”hŒall”…””}”(hjÀhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj”ubhŒ( results (very important usability fix).”…””}”(hj”hžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1h×hŸh¶h K+hjubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjhžhhŸh¶h Nubj )”}”(hŒTry to make the implementation itself more helpful in general, e.g. by providing additional error messages at affected places. ”h]”hØ)”}”(hŒ~Try to make the implementation itself more helpful in general, e.g. by providing additional error messages at affected places.”h]”hŒ~Try to make the implementation itself more helpful in general, e.g. by providing additional error messages at affected places.”…””}”(hjâhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h×hŸh¶h K.hjÞubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjhžhhŸh¶h Nubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1j‹hŸh¶h K+hh£hžhubeh}”(h]”Œ6explaining-the-no-working-init-found-boot-hang-message”ah ]”h"]”Œ9explaining the "no working init found." boot hang message”ah$]”h&]”uh1h¡hhhžhhŸh¶h Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”h¶uh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(h¦NŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”j)Œerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”h¶Œ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”jjsŒ nametypes”}”j‰sh}”jh£sŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nhžhub.