千家信息网

systemd switched-root的deserialize参数有什么用

发表于:2026-11-03 作者:千家信息网编辑
千家信息网最后更新 2026年11月03日,本篇内容主要讲解"systemd switched-root的deserialize参数有什么用",感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习"system
千家信息网最后更新 2026年11月03日systemd switched-root的deserialize参数有什么用

本篇内容主要讲解"systemd switched-root的deserialize参数有什么用",感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习"systemd switched-root的deserialize参数有什么用"吧!

systemd --switched-root --deserialize的这两个参数是内部用的,用于源代码中,不对外提供接口。

系统中可以通过ps命令来查看,为1号进程:

实例1:

root 1 0.0 0.4 45808 4092 ? Ss Aug22 0:02 /usr/lib/systemd/systemd --system --deserialize 15

实例2:

root 1 0.0 0.4 128096 4144 ? Ss Aug22 0:02 /usr/lib/systemd/systemd --switched-root --system --deserialize 21

These are intentionally undocumented internal parts of systemd. Very simply, therefore:

  • --deserialize is used to restore saved internal state that a previous invocation of systemd, exec()ing this one, has written out to a file. Its option argument is an open file descriptor for that process.

  • --switched-root is used to tell this invocation of systemd that it has been invoked from systemd managing an initramfs, and so should behave accordingly - including turning off some of the behaviour otherwise caused by --deserialize.

It's a good answer. To expand on this a bit: systemd running with --deserialize --switched-root essentially means systemd was also used in the initramfs. Nowadays this is pretty common, so those two options are to be expected in the command line of PID 1.


到此,相信大家对"systemd switched-root的deserialize参数有什么用"有了更深的了解,不妨来实际操作一番吧!这里是网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

参数 内容 实例 学习 实用 更深 两个 兴趣 可以通过 命令 实用性 实际 接口 操作简单 方法 更多 朋友 源代码 系统 网站 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 金融科技还是互联网 合肥互联网科技公司 互联网未来科技 新浪科技互联网 深圳卡尔迅互联网科技有限公司怎么样 随着互联网科技发展 互联网校园科技培训 南平创想时代互联网科技有限公司 互联网金融科技展 中和天地互联网科技有限公司 广州富喜互联网络科技 互联网营销推广黑科技 浙南科技城互联网大厦招聘 互联网与数字科技关系 南京一网一红互联网科技有限公司 西安有哪些互联网高科技企业 米泉互联网科技专业怎么样 互联网科技博主张洲 青岛易易互联网科技 河南商务圈互联网科技有限公司 互联网科技工作委员会主任 互联网科技战争 来此购互联网科技有限公司 互联网对科技的发展 国大互联网教育科技有限公司工作 互联网数据科技专业 厦门江牛科技互联网 郑州欣桑互联网科技有限公司 科技互联网经济论坛 互联网科技大会大佬
0