[Others] 关于 磐石 不可变系统 的一点使用体会
Tofloor
poster avatar
叶落无语
deepin
2025-05-16 09:17
Author

昨天刚在VBox虚拟机上安装了 DeepIn 25 Alpha 版本,在安装VBox 增强包时提示文件目录是只读,想起来应该是这个“磐石 不可变系统”对相关文件目录作了保护,于是在论坛中查找关闭磐石系统保护的命令,结果找到几个不同的命令:

sudo systemctl disable --now deepin-immutable && sudo reboot

sudo deepin-immutable-ctl disable-system-protect enable

sudo deepin-immutable-wrtiable enable -a

经过测试,只有最后一个命令能成功关闭磐石系统保。重启后顺利安装 VBox 增强包。

但是问题来了,与 sudo deepin-immutable-wrtiable enable -a 命令相对应的 sudo deepin-immutable-wrtiable disable 命令,运行时却提示找不到命令。

通过 sudo deepin-immutable-ctl -s 命令查询系统保护状态是 false。

我也没知道该如何重新开启这个磐石系统保功能了。

总结几点吧:
1、感觉这个磐石系统保功能,是备份还原+HIPS,功能定位似乎不是太明确。
2、不知道是 Alpha 版本不断调整完善的原因还是什么,关于磐石系统的命令并不统一,缺少一个集中管理配置的图形用户界面,应该集成到系统设置一起会方便一点。
3、通过命令关闭了,却无法通过命令再打开,也不知道是不我自己系统的问题。

最后,希望 DeepIn 25 系统不断完善,磐石系统更加稳定。

Reply Favorite View the author
All Replies
tacat
deepin
2025-05-16 09:35
#1

好像25beta就快发了,到时再试试

Reply View the author
deepin小助手
Super Moderator
OM
2025-05-16 10:53
#2

https://bbs.deepin.org.cn/post/286633

这条帖子里面有最新的命令,因为alpha升级之后,磐石方案有调整,所以上面的命令用不了(preview的)。

Reply View the author
HualetWang
deepin
2025-05-16 11:38
#3

狭义的磐石是 系统HIP + 备份还原 + 原子更新+……,这是不可变的部分,核心是完整性。

可变的部分是 容器 + 玲珑应用+……, 核心是兼容性。

以上+外延的一些内容,才是22年提根社区就设想的 广义的磐石。

不可变的部分原计划是做成类 image-based ,但是对于当前的系统环境、使用习惯、生态兼容都太大,所以现在算是 baseline 模式,属于兼顾了设计之初的核心目标,但是破坏性可控的实用、折中方案。

待建设的内容还有好多好多,头大+只能交给时间,一步一步来 😂

Reply View the author
叶落无语
deepin
2025-05-16 11:45
#4
deepin小助手

https://bbs.deepin.org.cn/post/286633

这条帖子里面有最新的命令,因为alpha升级之后,磐石方案有调整,所以上面的命令用不了(preview的)。

这个帖子里也是说用 sudo deepin-immutable-wrtiable disable 启用保护,可是我运行后提示找不到命令。

也许是我做了什么操作把 磐石 的系统文件搞坏了?

Reply View the author
deepin小助手
Super Moderator
OM
2025-05-16 12:09
#5

所以您是想关闭磐石吧?因为还没关闭的话,上面重新启用(启用就是开启磐石)的命令是不生效的。得执行这个命令:

若您想要关闭“只读保护”,请参考以下命令(执行完命令后,需重启系统才可以生效)。

  • deepin 25 Alpha 及后续版本
sudo deepin-immutable-writable enable -d /usr
​
  • deepin 25 Preview
sudo deepin-immutable-ctl disable-system-protect enable
Reply View the author
叶落无语
deepin
2025-05-16 15:53
#6

谢谢楼上关注。我是已经关闭了,安装了VBox增强包之后启用不了磐石保护。

Reply View the author
小图巴巴
deepin
2025-05-21 09:14
#7

sudo deepin-immutable-writable enable -a

这个命令单词writable i t两字母写颠倒了,这个是alpha版后的新命令。前两个是pre 预览版的命令。有点绕人,修改了。

Reply View the author
叶落无语
deepin
2025-05-21 10:40
#8

谢谢楼上提醒,我这老花眼真是太难了😭

再请教一下,

sudo deepin-immutable-writable disable
This operation will discard the data modified during the entire service opening period.
Please use with caution.
Do you want to continue? [Y/n]

这个提示,是说我开启保护之后,会舍弃所有后续对系统做的修改,还是说会把我关闭保护之后到再次打开保护之间的系统修改操作也回滚还原?

谢谢!

Reply View the author
Aurora
deepin
2025-05-23 20:50
#9

ocrmypdf报错

另外还有个依赖无法更新

找不到语言包啊或者什么的那种,是不是也是磐石的原因

Reply View the author