€•ñ;Œ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ŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/pt_BR/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.”…””}”(hj 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”…””}”(hj,h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j*hj&ubhŒv: Set “debug†kernel parameter (in bootloader config file or CONFIG_CMDLINE) to get more detailed kernel messages.”…””}”(hj&h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K hj"ubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjh²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”…””}”(hjRh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j*hjNubhŒ3: Make sure you have the correct root FS type (and ”…””}”(hjNh²hh³Nh´NubhŒliteral”“”)”}”(hŒ ``root=``”h]”hŒroot=”…””}”(hjfh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jdhjNubhŒÞ 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).”…””}”(hjNh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K hjJubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjh²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”…””}”(hjŒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j*hjˆubhŒ: Possibly a conflict in ”…””}”(hjˆh²hh³Nh´Nubje)”}”(hŒ``console= setup``”h]”hŒconsole= setup”…””}”(hjžh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jdhjˆubhŒ¨ --> 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 ”…””}”(hjˆh²hh³Nh´Nubje)”}”(hŒ``console= device``”h]”hŒconsole= device”…””}”(hj°h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jdhjˆubhŒ or e.g. ”…””}”(hjˆh²hh³Nh´Nubje)”}”(hŒ``netconsole=``”h]”hŒ netconsole=”…””}”(hjÂh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jdhjˆubhŒ.”…””}”(hjˆh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Khj„ubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjh²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&]”uh1j*hjäubhŒ@: E.g. required library dependencies of the init binary such as ”…””}”(hjäh²hh³Nh´Nubje)”}”(hŒ``/lib/ld-linux.so.2``”h]”hŒ/lib/ld-linux.so.2”…””}”(hjúh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jdhjäubhŒ missing or broken. Use ”…””}”(hjäh²hh³Nh´Nubje)”}”(hŒ!``readelf -d |grep NEEDED``”h]”hŒreadelf -d |grep NEEDED”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jdhjä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 hjh²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”…””}”(hj2h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j*hj.ubhX!: 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 (”…””}”(hj.h²hh³Nh´Nubje)”}”(hŒ ``#!/...``”h]”hŒ#!/...”…””}”(hjDh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jdhj.ubhŒ) that is fully working (including its library dependencies). And before tackling scripts, better first test a simple non-script binary such as ”…””}”(hj.h²hh³Nh´Nubje)”}”(hŒ ``/bin/sh``”h]”hŒ/bin/sh”…””}”(hjVh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jdhj.ubhŒB and confirm its successful execution. To find out more, add code ”…””}”(hj.h²hh³Nh´Nubje)”}”(hŒ``to init/main.c``”h]”hŒto init/main.c”…””}”(hjhh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jdhj.ubhŒ+ to display kernel_execve()s return values.”…””}”(hj.h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Khj*ubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjh²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´Nubje)”}”(hŒ``run_init_process()``”h]”hŒrun_init_process()”…””}”(hj°h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jdhj¨ubhŒ9 invocations via a struct array which can then store the ”…””}”(hj¨h²hh³Nh´Nubje)”}”(hŒ``kernel_execve()``”h]”hŒkernel_execve()”…””}”(hjÂh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jdhj¨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&]”uh1j*hj¨ubhŒ( results (very important usability fix).”…””}”(hj¨h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K+hj¤ubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj¡h²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 hj¡h²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.