Parent Directory | Revision Log
added tinycore
1 | package config; |
2 | |
3 | use warnings; |
4 | use strict; |
5 | use autodie; |
6 | |
7 | use server; |
8 | use pxelinux; |
9 | use File::Slurp; |
10 | |
11 | sub debian_live { |
12 | $dhcpd::file = "pxelinux.0"; |
13 | $pxelinux::path_prefix = 'live-helper/tftpboot/'; |
14 | $pxelinux::config_file = 'pxelinux.cfg/default'; |
15 | } |
16 | |
17 | use upstream; |
18 | |
19 | =head1 webconverger |
20 | |
21 | Webconverger - the opensource Web Kiosk |
22 | |
23 | L<http://webconverger.org/> |
24 | |
25 | =cut |
26 | |
27 | sub webconverger { |
28 | my $ip = shift; |
29 | |
30 | upstream::iso( 'http://download.webconverger.com/webc-5.2.iso' ); |
31 | |
32 | pxelinux::config_for_ip( $ip, qq{ |
33 | |
34 | default webconverger |
35 | label webconverger |
36 | kernel iso/live/vmlinuz-2.6.30-backports.1-486 |
37 | append initrd=iso/live/initrd.img-2.6.30-backports.1-486 fetch=http://172.16.10.1:7777/webconverger/iso/live/filesystem.squashfs boot=live quiet homepage=http://172.16.10.1:7777/ nonetworking nosudo splash video=vesa:ywrap,mtrr vga=788 nopersistent username=webc hostname=webconverger union=aufs |
38 | |
39 | }); |
40 | |
41 | } |
42 | |
43 | =head1 debirf |
44 | |
45 | debirf is a system that will create diskless, all-in-ram images (kernel and initramfs) that boot entirely into ram and leave the user in a fully functional Debian system. |
46 | |
47 | L<http://cmrg.fifthhorseman.net/wiki/debirf> |
48 | |
49 | =cut |
50 | |
51 | sub debirf { |
52 | my $ip = shift; |
53 | |
54 | upstream::iso( 'http://cmrg.mayfirst.org/debirf/debirf-rescue_lenny_2.6.26-1-686.iso' ); |
55 | |
56 | pxelinux::config_for_ip( $ip, qq{ |
57 | |
58 | default linux |
59 | label linux |
60 | kernel iso/vmlinuz-2.6.26-1-686 |
61 | append initrd=iso//debirf-rescue_lenny_2.6.26-1-686.cgz |
62 | |
63 | }); |
64 | } |
65 | |
66 | sub tinycore { |
67 | my $ip = shift; |
68 | upstream::iso( 'http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/release/tinycore_2.2.iso' ); |
69 | pxelinux::config_for_ip( $ip, qq{ |
70 | |
71 | default linux |
72 | label linux |
73 | kernel iso/boot/bzImage |
74 | append initrd=iso/boot/tinycore.gz |
75 | |
76 | }); |
77 | } |
78 | |
79 | sub for_ip { |
80 | my $ip = shift; |
81 | debian_live($ip); |
82 | # webconverger($ip); |
83 | # debirf($ip); |
84 | # tinycore($ip); |
85 | # $tftp::dir = "$server::base_dir/tftp/$pxelinux::path_prefix"; |
86 | } |
87 | |
88 | warn 'loaded'; |
89 | |
90 | 1; |
ViewVC Help | |
Powered by ViewVC 1.1.26 |