/[pxelator]/lib/PXElator/pxe.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/pxe.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 67 by dpavlin, Thu Jul 30 16:26:54 2009 UTC revision 68 by dpavlin, Thu Jul 30 22:43:48 2009 UTC
# Line 18  my $url = $httpd::url; Line 18  my $url = $httpd::url;
18  #$url = "tftp://$server::ip/"; # fallback to tftp  #$url = "tftp://$server::ip/"; # fallback to tftp
19  #$url = "http://$server::ip/pxelator/";  #$url = "http://$server::ip/pxelator/";
20    
 my $squash = tftpd::path('debian-live/*squashfs');  
21    
22  sub config_for_ip {  sub config_for_ip {
23    
# Line 29  sub config_for_ip { Line 28  sub config_for_ip {
28          mkdir $config unless -d $config;          mkdir $config unless -d $config;
29          $config .= '/' . $ip;          $config .= '/' . $ip;
30    
31            my $squash = $url . tftpd::path('debian-live/*squashfs');
32          write_file $config, qq{          write_file $config, qq{
33    
34          default linux          default linux
35          label linux          label linux
36                  kernel $url/debian-live/vmlinuz1                  kernel $url/debian-live/vmlinuz1
37                  append initrd=$url/debian-live/initrd1.img boot=live union=aufs noswap noprompt vga=normal fetch=$url/$squash                  append initrd=$url/debian-live/initrd1.img boot=live union=aufs noswap noprompt vga=normal fetch=$squash
38    
39          };          };
40    

Legend:
Removed from v.67  
changed lines
  Added in v.68

  ViewVC Help
Powered by ViewVC 1.1.26