/[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 523 by dpavlin, Tue Aug 24 13:02:01 2010 UTC revision 524 by dpavlin, Mon Sep 13 18:23:13 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 vyatta/ };  sub available { qw/katalog debian_live webconverger debirf tinycore nfsroot openvz printer wrt clonezilla ubuntu memdisk vyatta android/ };
21    
22  sub debian_live {  sub debian_live {
23          my ($ip) = @_;          my ($ip) = @_;
# Line 210  label vyatta Line 210  label vyatta
210    
211          });          });
212  }  }
213    
214    sub android {
215            my $ip = shift;
216            my $path = upstream::iso( 'http://android-x86.googlecode.com/files/android-x86-1.6-r2.iso' );
217    
218            my $dir = "$server::base_dir/tftp/android";
219            symlink '/usr/lib/syslinux/memdisk', "$dir/memdisk" unless -e "$dir/memdisk";
220    
221            client::conf $ip => 'kvm.boot' => "n -cdrom $path";
222    
223            pxelinux::config_for_ip( $ip, qq{
224    
225    default android-1.6-donut
226    label android-1.6-donut
227    
228            kernel iso/kernel
229            append initrd=iso/initrd.img root=/dev/ram0 androidboot_hardware=eeepc acpi_sleep=s3_bios,s3_mode quiet SRC= DATA= SDCARD= vga=788 DEBUG=1
230    
231            });
232    }
233    
234  sub in_chroot {  sub in_chroot {
235          my ( $dir, $command ) = @_;          my ( $dir, $command ) = @_;

Legend:
Removed from v.523  
changed lines
  Added in v.524

  ViewVC Help
Powered by ViewVC 1.1.26