On Mon, Jul 31, 2017 at 4:05 PM, Al Slater <al.sla...@scluk.com> wrote: > One more question though, is there any way to enable an SMF service for > the next reboot, but not immediately. Specifically, I want to enable > the initial-boot service with a .initialboot file in place, then create > a new AMI. > > I wist to use .initialboot to grab the instance configuration from > amazon (hostname, root keys etc) and configure appropriately when the > new instance starts.
Hi Al, The initial-boot service isn't really suitable for this sort of thing. You might want to check out pkg://omnios/system/management/ec2-credential which specifically handles setting up the credentials at first boot. That could be trivially extended[1] to set the system hostname and probably any other "standard" thing that operators want. Eric [1] https://github.com/omniosorg/omnios-build/blob/master/build/ec2-credential/files/install-ec2-credential _______________________________________________ OmniOS-discuss mailing list OmniOS-discuss@lists.omniti.com http://lists.omniti.com/mailman/listinfo/omnios-discuss