--- lib/PXElator/config.pm 2009/09/30 13:59:45 445 +++ lib/PXElator/config.pm 2009/10/02 10:23:56 450 @@ -14,7 +14,7 @@ our $mounted; -sub available { qw/debian_live webconverger debirf tinycore nfsroot openvz printer wrt/ }; +sub available { qw/katalog debian_live webconverger debirf tinycore nfsroot openvz printer wrt/ }; sub debian_live { my ($ip) = @_; @@ -71,6 +71,23 @@ } +sub katalog { + my ($ip) = @_; + $mounted->{"webconverger/$ip"} ||= upstream::iso( 'http://download.webconverger.com/webc-5.5.iso' ); + my $hostname = client::conf( $ip => 'hostname' ) || 'katalog'; + my $homepage = client::conf( $ip => 'webconverger/homepage' => "http://koha.ffzg.hr" ); + my $fetch = client::conf( $ip => 'webconverger/fetch' => "http://${server::ip}:7777/webconverger/custom.squashfs" ); + + pxelinux::config_for_ip( $ip, qq{ + +default katalog +label katalog + kernel iso/live/vmlinuz-2.6.30-backports.1-486 + append initrd=iso/live/initrd.img-2.6.30-backports.1-486 fetch=$fetch boot=live quiet nosudo splash video=vesa:ywrap,mtrr vga=788 nopersistent username=webc hostname=$hostname union=aufs homepage=$homepage locale=hr noprompt + + }); + +} =head1 debirf 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.