sysfs是否会由内核挂载devcfs devtmpfs? [英] Does sysfs procfs devtmpfs mounted by kernel?

查看:75
本文介绍了sysfs是否会由内核挂载devcfs devtmpfs?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究systemd.

I'm looking into systemd.

我以为systemd会在内核初始化后的引导过程中挂载sysfs(/sys),procfs(/proc),devtmpfs(/dev).

I thought systemd would mount sysfs(/sys), procfs(/proc), devtmpfs(/dev) during booting after kernel initialization.

但是我的systemd调试日志显示systemd没有挂载此类文件系统.(它仅挂载cgroups,securityfs等...)

But my systemd debugging log show that systemd doesn't mount such file systems.(it only mounts cgroups, securityfs, etc...)

在何时以及何时安装此类文件系统?内核会挂载sys,proc,dev吗?

推荐答案

是的,这些是通过systemd PID1挂载的,请参见systemd源文件中的src/core/mount-setup.c.

Yes, those are mounted by systemd PID1, see src/core/mount-setup.c in the systemd sources.

这篇关于sysfs是否会由内核挂载devcfs devtmpfs?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆