--- lib/PXElator/pxe.pm 2009/07/30 15:23:16 59 +++ lib/PXElator/pxe.pm 2009/07/30 15:23:29 60 @@ -6,7 +6,7 @@ use File::Slurp; -use server; +use httpd; use tftpd; our $file = 'gpxelinux.0'; @@ -14,8 +14,9 @@ symlink '/usr/lib/syslinux/gpxelinux.0', $path unless -l $path; warn "file $path ", -s $path; -my $url = "http://$server::ip/pxelator/"; +my $url = $httpd::url; $url = "tftp://$server::ip/"; # fallback to tftp +$url = "http://$server::ip/pxelator/"; my $squash = tftpd::path('debian-live/*squashfs'); @@ -28,7 +29,7 @@ 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=http://$server::ip/pxelator/$squash + append initrd=$url/debian-live/initrd1.img boot=live union=aufs noswap noprompt vga=normal fetch=$url/$squash };