# File lib/puppet/provider/zone/solaris.rb, line 152
152:   def start
153:     # Check the sysidcfg stuff
154:     if cfg = @resource[:sysidcfg]
155:       zoneetc = File.join(@resource[:path], "root", "etc")
156:       sysidcfg = File.join(zoneetc, "sysidcfg")
157: 
158:       # if the zone root isn't present "ready" the zone
159:       # which makes zoneadmd mount the zone root
160:       zoneadm :ready unless File.directory?(zoneetc)
161: 
162:       unless File.exists?(sysidcfg)
163:         begin
164:           File.open(sysidcfg, "w", 0600) do |f|
165:             f.puts cfg
166:           end
167:         rescue => detail
168:           puts detail.stacktrace if Puppet[:debug]
169:           raise Puppet::Error, "Could not create sysidcfg: #{detail}"
170:         end
171:       end
172:     end
173: 
174:     zoneadm :boot
175:   end