/[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

Contents of /lib/PXElator/pxe.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 45 - (show annotations)
Wed Jul 29 22:04:58 2009 UTC (14 years, 8 months ago) by dpavlin
File size: 626 byte(s)
dump all other peaces in, first configuration which can again boot
(wrong image, that is :-)

1 package pxe;
2
3 use warnings;
4 use strict;
5
6 use File::Slurp;
7
8 use server;
9 use tftpd;
10
11 our $file = 'gpxelinux.0';
12 my $path = "$tftpd::dir/$file";
13 symlink '/usr/lib/syslinux/gpxelinux.0', $path unless -l $path;
14 warn "file $path ", -s $path;
15
16 my $url = "http://$server::ip/pxelator/debian-live/";
17 my $squash = tftpd::path('debian-live/*squashfs');
18
19
20 my $config = "$ftpd::dir/pxelinux.cfg/default";
21
22 write_file $config, qq{
23
24 default linux
25 label linux
26 kernel $url/vmlinuz1
27 append initrd=$url/initrd1.img boot=live union=aufs noswap noprompt vga=normal fetch=$url/$squash
28
29 };
30
31 warn "config $config ", -s $config;
32
33 warn "loaded";
34
35 1;

  ViewVC Help
Powered by ViewVC 1.1.26