如果更改了脚本或服务清单,请使用以下过程安装更新。
$ cp first-boot-script-svc-manifest.xml proto/lib/svc/manifest/site $ cp first-boot-script.sh proto/opt/site
在软件包清单中,将 pkg.fmri 属性的值更改为以下值,例如:
first-boot-script@1.0,5.11-0.1
将新的软件包版本发布到系统信息库。
$ pkgsend publish -d ./proto -s ./firstbootrepo first-boot-script.p5m pkg://firstboot/first-boot-script@1.0,5.11-0.1:2013123T231948Z PUBLISHED
使用 pkg list -af 命令确保您可以访问该新版本。您可能需要使用 pkg refresh firstboot 命令更新软件包列表。使用 pkg update 命令更新软件包。