Ai
1 Star 0 Fork 2

BuildOpenSource/busybox

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
run-init.c 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
Denys Vlasenko 提交于 2022-11-29 21:14 +08:00 . Remove "select PLATFORM_LINUX"
/*
* run-init implementation for busybox
*
* Copyright (c) 2017 Denys Vlasenko <vda.linux@gmail.com>
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
//config:config RUN_INIT
//config: bool "run-init (7.7 kb)"
//config: default y
//config: help
//config: The run-init utility is used from initramfs to select a new
//config: root device. Under initramfs, you have to use this instead of
//config: pivot_root.
//config:
//config: Booting with initramfs extracts a gzipped cpio archive into rootfs
//config: (which is a variant of ramfs/tmpfs). Because rootfs can't be moved
//config: or unmounted, pivot_root will not work from initramfs. Instead,
//config: run-init deletes everything out of rootfs (including itself),
//config: does a mount --move that overmounts rootfs with the new root, and
//config: then execs the specified init program.
//config:
//config: util-linux has a similar tool, switch-root.
//config: run-init differs by also having a "-d CAPS_TO_DROP" option.
/* applet and kbuild hooks are in switch_root.c */
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/build-open-source/busybox.git
git@gitee.com:build-open-source/busybox.git
build-open-source
busybox
busybox
master

搜索帮助