--- lib/PXElator/config.pm 2010/10/10 11:44:43 549 +++ lib/PXElator/config.pm 2010/10/29 15:45:04 550 @@ -24,6 +24,7 @@ openvz printer wrt clonezilla ubuntu memdisk vyatta android systemrescue + memtest / }; sub debian_live { @@ -291,6 +292,23 @@ }); } + +# http://www.memtest.org/ +sub memtest { + my $ip = shift; + + my $dir = "$server::base_dir/tftp/memtest"; + mkdir $dir unless -e $dir; + symlink '/boot/memtest86+.bin', "$dir/memtest.bin" unless -e "$dir/memtest.bin"; + + pxelinux::config_for_ip( $ip, qq{ + +default memtest +label memtest + linux memtest.bin + + }); +} sub in_chroot { my ( $dir, $command ) = @_;