boot_hook_init initramfs boot_hook_init preinit_mount_rootpi_mount_skip_next=falsepi_jffs2_mount_success=falsepi_failsafe_net_message=false 其中/lib/preinit/00_preinit.conf定义了一些关键的环境变量,比如IP/NETMASK等。 执行preinit_essential + preinit_main lib/preinit/* 在preinit_main上注册了多个函...
(Failsafemodeispresentedinaseparatesection.Oncefailsafemodeisentereditdoesn'texit.Arebootisnecessarytoenternormaloperatingmode).5.Mountstherootfilesystem(thisinvolvesanumbersteps,presentedinaseparatesection)6.Preinit、挂载根目录、首次启动脚本[OpenWrtWiki]https://wiki.openwrt/zh-cn/doc/techref/preinit_mount...
`run_failsafe_hook`退出引导流程。`do_mount_root`挂载overlay+恢复配置,执行`mount_root`挂载overlay,如果存在`/sysupgrade.tgz`则恢复配置。最后,`check_e2p`进行无线校准数据相关修正。此过程详尽描述了openwrt系统启动中的preinit阶段,从内核初始化到procd接管的完整流程,以及其中关键脚本与操作的执...
boot_hook_init preinit_mount_root +boot_hook_init preinit_late for pi_source_file in /lib/preinit/*; do . $pi_source_file @@ -27,3 +28,4 @@ pi_jffs2_mount_success=false pi_failsafe_net_message=false boot_run_hook preinit_main +boot_run_hook preinit_late diff --git a/package/...
auto self_mount_info = parse_mount_info("self"); char path[PATH_MAX]; // Bind remount module root to clear nosuid ssprintf(path, sizeof(path), "%s/" MODULEMNT, get_magisk_tmp()); xmkdir(path, 0755); xmount(MODULEROOT, path, nullptr, MS_BIND, nullptr); xmount(nullptr, path, ...
I tested the build locally on a x86-64 virtualbox environment as well as rockchip friendlyarm nanopi r2s. It should work on any other environments as long as mount_root works since they use the same underlying library. Author openwrt-botcommentedAug 6, 2020 ...