Sha256: 79b4f56c2f530b4ba50fe1335b10134652c204f637a3710cd005af3ca96491bb

Contents?: true

Size: 1.33 KB

Versions: 6

Compression:

Stored size: 1.33 KB

Contents

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)

<% if appliance_config.os.name == 'fedora' and appliance_config.os.version >= '16' %>
part biosboot --size 5 --fstype biosboot --ondisk sda
<% end %>
<% mount_points.each do |root| %>
<% partition = appliance_config.hardware.partitions[root]%>
part <%= root %> --size <%= (partition['size'].to_f * 1024).to_i %> --fstype <%= root.eql?('swap') ? 'swap' : 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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
boxgrinder-build-0.10.4 lib/boxgrinder-build/plugins/os/rpm-based/src/appliance.ks.erb
boxgrinder-build-0.10.3 lib/boxgrinder-build/plugins/os/rpm-based/src/appliance.ks.erb
boxgrinder-build-0.10.2 lib/boxgrinder-build/plugins/os/rpm-based/src/appliance.ks.erb
boxgrinder-build-0.10.1 lib/boxgrinder-build/plugins/os/rpm-based/src/appliance.ks.erb
boxgrinder-build-0.10.0 lib/boxgrinder-build/plugins/os/rpm-based/src/appliance.ks.erb
boxgrinder-build-0.9.8 lib/boxgrinder-build/plugins/os/rpm-based/src/appliance.ks.erb