14.2. Initiating a soft reboot


You can detect and prepare the system for a soft reboot when the system administrator runs bootc upgrade, bootc switch, or bootc rollback by using one of the two options:

  • --soft-reboot=auto: It automatically prepares the system if soft-reboot is possible and will not error out if the system is not capable of soft-reboot.
  • --soft-reboot=required: Automatically prepares the system if soft reboot is possible, but it errors out if the system is not capable of a soft reboot.

These options enable you to manage when the limited downtime is required by stopping an --apply operation or informing you not to call reboot as bootc has not exited cleanly.

Prerequisites

  • You have information about the current status of the system.

Procedure

  1. Perform an update, switch, or rollback operation by using the bootc tool to stage the new container image. Otherwise, the soft re-executes the current userspace.

    $ sudo bootc update --soft-reboot=required --apply
  2. Initiate a soft reboot, for example, while running bootc switch:

    $ sudo bootc switch --soft-reboot=required --apply quay.io/test_rh/soft-reboot:1

Verification

  • Verify the soft reboot is completed:

    $ systemctl show --value --property SoftRebootsCount
    1
  • Check the new soft reboot:yes flag:

    $ sudo bootc status --verbose
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部