English Chinese (Simplified)
OSTree allows you to pin deployments (pinning ensures that your deployment of choice is kept and not discarded). OSTree 允许你固定特定的部署(这样就能保留你选择的部署,避免被自动移除)。
Assuming that you want to keep your default deployment, issue the following command: 不妨假设你希望保留你当前的部署:
$ sudo ostree admin pin 0
$ sudo ostree admin pin 0
`0` here refers to the first deployment listed by `rpm-ostree status` `0` 指代的是 `rpm-ostree status` 所列举的第一个部署
Verify that you have pinned your deployment of choice by issuing: 要想检查你固定了那些部署:
rpm-ostree status
rpm-ostree status
After the deployment is pinned, you can upgrade your system by using the instructions found https://docs.fedoraproject.org/en-US/fedora-silverblue/updates-upgrades-rollbacks/#upgrading[here.] 当你的部署被固定了之后,你就可以根据 https://docs.fedoraproject.org/en-US/fedora-silverblue/updates-upgrades-rollbacks/#upgrading[Fedora 文档] 的指引完成系统升级。
When you have completed rebasing, reboot the system. The GRUB menu will now present you with both: the previous deployment major version entry (e.g.: *"Fedora 30.YYYYMMDD.n"*) and the new deployment major version entry (e.g.: *"Fedora 31.YYYYMMDD.n"*). 当变基完成之后,重启系统。GRUB 菜单会同时为你展现旧的部署(例如 *"Fedora 30.YYYYMMDD.n"*)和新的部署(例如 *"Fedora 31.YYYYMMDD.n"*)。
At the moment it is not possible to name (pinned) deployments and their associated GRUB menu entries. 请注意目前还不支持为这些部署重新命名。