Debian support

Moderators: the_dude, Posters

Debian support

Postby helper » Fri May 08, 2009 12:37 pm

I've just added the possibility to start the debian 5.0 netinstall iso (debian-501-i386-netinst.iso) so I'm here to share.

I added those lines in /var/public/cgi-bin/uda.pl
Code: Select all
sub ImportDebian
{
  local($fullfilename)=shift;
  local($version)=shift;
  local($newversion)=uc($version);

  local($ubdir)=$WWWDIR."/debian";
  local($mountdir)="$ubdir/".$version;
  local($extradir)=$TFTPDIR;

  local($result)=&CreateDir($ubdir);
  if ($result) {return $result}

  local($result)=&CreateDir($mountdir);
  if ($result) { return $result }

  local($result)=&CreateDir($extradir);
  if ($result) { return $result }

  local($result)=&MountIso($fullfilename,$mountdir);
  if ($result) { return $result }

  local($result)=&AddToFstab("$fullfilename $mountdir iso9660 loop 0 0");
  if ($result) { return 1 };

  if ($version eq "deb5")
  {
    local($result)=&ImportFile("$mountdir/install.386/vmlinuz","$extradir/linux.".$version);
    if ($result) { return $result }
    local($result)=&ImportFile("$mountdir/install.386/initrd.gz","$extradir/initrd.".$version.".gz");
    if ($result) { return $result }
    local($result)=&ImportFile("$mountdir/install.386/gtk/initrd.gz","$extradir/initrd.".$version."g.gz");
    if ($result) { return $result }
  }

  print "<BR><FONT COLOR=GREEN><B>DONE</B></FONT>";
  return 0;

}


Then i added modified those lines in the ImportOS sub (always in uda.pl)
Code: Select all
  local($importresult)=0;
  if ($os eq "wi2ks" || $os eq "wi2k3" || $os eq "winxp")
  {
    $importresult=&ImportWindows($fullfilename,$os);
  } elsif ($os eq "bartpe") {
    $importresult=&ImportBartPE($fullfilename,$os);
  } elsif ($os eq "fc4" || $os eq "fc5" || $os eq "fc6") {
    $importresult=&ImportFedora($fullfilename,$os);
  } elsif ($os eq "suse100" || $os eq "suse101" | $os eq "suse102") {
    $importresult=&ImportSuse($fullfilename,$os);
  } elsif ($os eq "sol10") {
    $importresult=&ImportSolaris($fullfilename,$os);
  } elsif ($os eq "ub606s" || $os eq "ub610") {
    $importresult=&ImportUbuntu($fullfilename,$os);
  } elsif ($os eq "rip19") {
    $importresult=&ImportRIP($fullfilename,$os);
  } elsif ($os eq "ts22") {
    $importresult=&ImportTS($fullfilename,$os);
  } elsif ($os eq "dsl301" || $os eq "dsl31") {
    $importresult=&ImportDSL($fullfilename,$os);
  } elsif ($os eq "gp0330" ) {
    $importresult=&ImportGparted($fullfilename,$os);
  } elsif ($os eq "esx252" || $os eq "esx301" ) {
    $importresult=&ImportESX($fullfilename,$os);
  } elsif ($os eq "deb5") {
    $importresult=&ImportDebian($fullfilename,$os);
  } else {
    return 1;
  }


Notice that i only added the $os eq "deb5" condition.

After that i configured the os through the web interface (so i selected the debian-501-i386-netinst.iso image file I downloaded).

Then i modified /var/public/tftproot/pxelinux.cfg/default this way:
Code: Select all
# serial 0,9600
default local
prompt 1
timeout 600
F1 help.txt
display message.txt
label local
  localboot 0

label deb5
  kernel linux.deb5
  append initrd=initrd.deb5.gz

label deb5g
  kernel linux.deb5
  append video=vesa:ywrap,mtrr vga=788 initrd=initrd.deb5g.gz -- quiet


Notice that i only added two labels (the second one is for the graphic installation method)

Then i also modified the message.txt (/var/public/tftproot/message.txt)
Code: Select all
07                                                                               
                                                                               
      *********************************************                           
        *****  Ultimate Deployment Appliance  *******                         
          *********************************************                       
                                                                               
For help press 0f<F1>07                                                           
                                                                               
Current Templates:                                                             
                                                                               
  ID    Description                                                           
+-----+-----------------------------------------------------------------------+

 deb5   Debian 5.0 net-install
 deb5g  Debian 5.0 net-install (graphic)


That's all...

I did this very quickly so the changes are pretty raw: i didn't change the variables names in the ImportDebian sub, the web interface won't make you see that the debian image is mounted etc... but it works.
Hope that debian support will be added in any future uda release...

Cheers
helper
 
Posts: 1
Joined: Fri May 08, 2009 12:18 pm

Re: Debian support

Postby apex » Tue Apr 13, 2010 7:34 pm

The latest Debian works with no modification in UDA 2.0 beta 14. The only problem I had was that Debian complained it could not find the mirrors "bad archive mirror". This was because Debian was attempting to use my UDA's DNS server, which I didn't have. I installed named on UDA and everything worked from then on.
UDA 2.0 b14 - Working: UDBCD4Win 3.5 Live, BartPE 3.1.10a Live, Clonezilla 1.2.3-27 Live, Windows 2003 Server, openSUSE 11.2, Fedora 12, CentOS 5.4, Ubuntu 9.10, Debian 5.0.
apex
 
Posts: 12
Joined: Thu Feb 18, 2010 2:35 am


Return to OS Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron