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 = "http://$server::ip/pxelator/";
18 $url = "tftp://$server::ip/"; # fallback to tftp
20 my $squash = tftpd::path('debian-live/*squashfs');
22 my $config = "$tftpd::dir/pxelinux.cfg/default";
24 write_file $config, qq{
28 kernel $url/debian-live/vmlinuz1
29 append initrd=$url/debian-live/initrd1.img boot=live union=aufs noswap noprompt vga=normal fetch=http://$server::ip/pxelator/$squash
33 warn "config $config ", -s $config;