--- lib/PXElator/pxe.pm 2009/07/30 16:16:18 63 +++ lib/PXElator/pxe.pm 2009/07/31 20:08:06 95 @@ -15,10 +15,9 @@ warn "file $path ", -s $path; my $url = $httpd::url; -$url = "tftp://$server::ip/"; # fallback to tftp -$url = "http://$server::ip/pxelator/"; +#$url = "tftp://$server::ip/"; # fallback to tftp +#$url = "http://$server::ip/pxelator/"; -my $squash = tftpd::path('debian-live/*squashfs'); sub config_for_ip { @@ -29,16 +28,17 @@ mkdir $config unless -d $config; $config .= '/' . $ip; + my $squash = $url . tftpd::path('debian-live/*squashfs'); write_file $config, qq{ default linux label linux kernel $url/debian-live/vmlinuz1 - 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 }; - warn "config $config ", -s $config; + warn "config $config ", -s $config if $server::debug; }