/[pxelator]/lib/PXElator/config.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

Diff of /lib/PXElator/config.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 518 by dpavlin, Wed Jul 21 18:52:54 2010 UTC revision 519 by dpavlin, Tue Aug 24 11:44:06 2010 UTC
# Line 17  our $mounted; Line 17  our $mounted;
17  our $server;  our $server;
18  our $server_ip;  our $server_ip;
19    
20  sub available { qw/katalog debian_live webconverger debirf tinycore nfsroot openvz printer wrt clonezilla ubuntu memdisk/ };  sub available { qw/katalog debian_live webconverger debirf tinycore nfsroot openvz printer wrt clonezilla ubuntu memdisk vyatta/ };
21    
22  sub debian_live {  sub debian_live {
23          my ($ip) = @_;          my ($ip) = @_;
# Line 192  label $image Line 192  label $image
192    
193          });          });
194  }  }
195    
196    sub vyatta {
197            my $ip = shift;
198            upstream::iso( 'http://www.vyatta.com/downloads/vc6.0/vyatta-livecd-virt_VC6.0-2010.06.01_i386.iso' );
199    
200            my $dir = "$server::base_dir/tftp/vyatta";
201            symlink '/usr/lib/syslinux/memdisk', "$dir/memdisk" unless -e "$dir/memdisk";
202    
203            pxelinux::config_for_ip( $ip, qq{
204    
205    default vyatta
206    label vyatta
207    
208            kernel iso/live/vmlinuz1
209            append initrd=iso/live/initrd1.img boot=live nopersistent noautologin nonetworking nouser hostname=vyatta fetch=http://$server_ip:7777/vyatta/iso/live/filesystem.squashfs
210    
211            });
212    }
213    
214  sub in_chroot {  sub in_chroot {
215          my ( $dir, $command ) = @_;          my ( $dir, $command ) = @_;

Legend:
Removed from v.518  
changed lines
  Added in v.519

  ViewVC Help
Powered by ViewVC 1.1.26