12 our $file = 'gpxelinux.0';
13 my $path = "$tftpd::dir/$file";
14 symlink '/usr/lib/syslinux/gpxelinux.0', $path unless -l $path;
15 warn "file $path ", -s $path;
17 my $url = $httpd::url;
18 #$url = "tftp://$server::ip/"; # fallback to tftp
19 #$url = "http://$server::ip/pxelator/";
21 my $squash = tftpd::path('debian-live/*squashfs');
26 $ip = uc sprintf "%02x%02x%02x%02x", split /\./,$ip;
28 my $config = "$tftpd::dir/pxelinux.cfg";
29 mkdir $config unless -d $config;
32 write_file $config, qq{
36 kernel $url/debian-live/vmlinuz1
37 append initrd=$url/debian-live/initrd1.img boot=live union=aufs noswap noprompt vga=normal fetch=$url/$squash
41 warn "config $config ", -s $config;