Bug #1457

Provisioning Template for Debian-based systems not working for ubuntu/mint

Added by David M. over 1 year ago. Updated over 1 year ago.

Status:New Start:01/19/2012
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:-
Target version:-
Backlog:No Difficulity:
Votes: 0

Description

If you try to install Ubuntu or Mint Linux using a Debian-Family Template fails.

The proxy tries to download the kernel and initrd-image from

http://archive.ubuntu.com/ubuntu/dists/oneiric/main/installer-amd64/current/images/netboot/debian-installer/amd64/

where the path on the server is:

http://archive.ubuntu.com/ubuntu/dists/oneiric/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/
<pre>

(ubuntu-installer instead of debian-installer)

History

Updated by David M. over 1 year ago

As far as I can see in the source code, the installer-path is guessed by the name of the Template.
I think this is not very smart... If there is no Ubuntu in the title, this function will guess it is debian.

In case of Mint Linux, ubuntu were the right path, but it returns debian, because there is no Ubuntu in its name.

foreman/app/models/debian.rb - Line 43:

 
def guess_os
   name =~ /ubuntu/i ? "ubuntu" : "debian" 
end

Also available in: Atom PDF