Revision d9a44dd0
Added by Daniel Lobato Garcia over 6 years ago
app/views/unattended/provisioning_templates/PXEGrub2/preseed_default_pxegrub2.erb | ||
---|---|---|
os_name = @host.operatingsystem.name
|
||
|
||
options = []
|
||
if @host.params['blacklist']
|
||
options << @host.params['blacklist'].split(',').collect{|x| "#{x.strip}.blacklist=yes"}.join(' ')
|
||
if host_param('blacklist')
|
||
options << host_param('blacklist').split(',').collect{|x| "#{x.strip}.blacklist=yes"}.join(' ')
|
||
end
|
||
if os_name == 'Debian'
|
||
options << "auto=true"
|
||
... | ... | |
else
|
||
options << 'console-setup/ask_detect=false console-setup/layout=USA console-setup/variant=USA keyboard-configuration/layoutcode=us localechooser/translation/warn-light=true localechooser/translation/warn-severe=true'
|
||
end
|
||
options << "locale=#{@host.params['lang'] || 'en_US'}"
|
||
options << "locale=#{host_param('lang') || 'en_US'}"
|
||
options = options.join(' ')
|
||
|
||
if (os_name == 'Ubuntu' && os_major > 12) || (os_name == 'Debian' && os_major > 8)
|
||
... | ... | |
end
|
||
-%>
|
||
set default=0
|
||
set timeout=<%= @host.params['loader_timeout'] || 10 %>
|
||
set timeout=<%= host_param('loader_timeout') || 10 %>
|
||
|
||
menuentry '<%= template_name %>' {
|
||
linux<%= efi_suffix %> <%= @kernel %> interface=auto url=<%= foreman_url('provision')%> ramdisk_size=10800 root=/dev/rd/0 rw auto hostname=<%= @host.name %> <%= options %>
|
Also available in: Unified diff
Release 1.16.0-RC1