系统管理指南:基本管理

Procedure如何使用 bootadm 命令清除引导归档文件自动更新故障

在引导系统过程中,如果显示类似以下内容的警告消息,请按照相应的步骤操作:


WARNING: Automatic update of the boot archive failed.
Update the archives using 'bootadm update-archive'
command and then reboot the system from the same device that
was previously booted.

以下过程介绍如何使用 bootadm 命令手动更新过时的引导归档文件。

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

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

  2. 要更新引导归档文件,请键入:


    # bootadm update-archive
    
    bootadm

    管理系统中的引导归档文件。

    update-archive

    根据需要更新当前的引导归档文件。同时适用于基于 SPARC 的系统和基于 x86 的系统。

  3. 重新引导系统。


    # reboot