You can interactively create an IPS package containing an SMF service to run a first-boot script, by running the svc-create-boot-script command without any arguments. You will need to provide the following information:
Path to the first-boot script.
FMRI of the first-boot service - The default is svc:/site/first-boot-svc.
Select if the dependencies need to be customized - if you select No, the multiuser milestone is selected. If you select Yes, the following questions are presented;
Does your first boot service configure the network or require access to the network? - If you select Yes, the network milestone is added as a dependency.
Does your first boot service need to lookup non-local hosts or user names? - If you select Yes, the name-services milestone is added as a dependency.
Does your first boot service need to access any files outside of the root file system? - If you select Yes, the multi-user milestone is added as a dependency.
Enter any additional dependency.
Select if your first-boot script should be rerun on cloned instances.
Enter the method script timeout in seconds - the default is 60 seconds.
Enter the package FMRI - the default FMRI is first-boot-svc.
Enter the publisher name - the default name is firstboot.
Enter the URI to an existing repository or the path to the generated p5p archive.