系统管理指南:基本管理

Procedurex86: 如何使用 auto-reboot-safe 属性清除引导归档文件自动更新故障

在基于 x86 的系统上,在引导系统的过程中,如果显示类似以下内容的警告,则按照随后过程中所描述的步骤操作。


WARNING: Reboot required.
The system has updated the cache of files (boot archive) that is used
during the early boot sequence. To avoid booting and running the system
with the previously out-of-sync version of these files, reboot the
system from the same device that was previously booted.

然后系统进入系统维护模式。

  1. 成为超级用户或同等角色。

    角色包含授权和具有一定权限的命令。有关角色的更多信息,请参见 《系统管理指南:安全性服务》中的“配置 RBAC(任务列表)”

  2. 重新引导系统。


    # reboot
    

    要阻止发生此类故障,如果活动的 BIOS 引导设备和 GRUB 菜单项指向当前的引导实例,请按照以下步骤操作:

  3. svc:/system/boot-config SMF 服务的 auto-reboot-safe 属性设置为 true,如下所示:


    # svccfg -s svc:/system/boot-config:default setprop config/auto-reboot-safe = true
    
  4. 验证 auto-reboot-safe 属性是否设置正确。


    # svccfg -s svc:/system/boot-config:default listprop |grep config/auto-reboot-safe
    config/auto-reboot-safe            boolean  true