appliance.ks.erb

Path: lib/boxgrinder-build/plugins/os/rpm-based/src/appliance.ks.erb
Last Update: Wed Apr 27 16:37:28 +0000 2011

lang en_US.UTF-8 keyboard us timezone US/Eastern auth —useshadow —enablemd5 selinux —permissive firewall —disabled bootloader —timeout=1 firstboot —disabled

<% if graphical %> xconfig —startxonboot services —enabled=NetworkManager —disabled=network <% else %> network —bootproto=dhcp —device=eth0 —onboot=on services —enabled=network <% end %>

rootpw —iscrypted <%= appliance_config.os.password.crypt((0...8).map { 65.+(rand(25)).chr }.join) %>

# appliance-creator doesn‘t support labels… # —label Zlib.crc32(root).to_s(16)

<% mount_points.each do |root| %> <% partition = appliance_config.hardware.partitions[root]%> part <%= root %> —size <%= (partition[‘size’].to_f * 1024).to_i %> —fstype <%= partition[‘type’] %> <% unless partition[‘options’].nil? %> —fsoptions ’<%= partition[‘options’] %>’ <% end %> <% if partition[‘passphrase’] %> —encrypted —passphrase=’<%= partition[‘passphrase’] %>’ <% end %> —ondisk sda<% end %>

<% for repo in repos %> <%= repo %><% end %>

%packages

<% appliance_config.packages.each do |package| %>

  <%= package %><% end %>

%end %post

<% if graphical %> chkconfig —level 345 firstboot off 2>/dev/null<% end %>

%end

[Validate]