projects
/
pxelator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
46533a9
)
added memtest
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 29 Oct 2010 15:45:04 +0000
(15:45 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 29 Oct 2010 15:45:04 +0000
(15:45 +0000)
lib/PXElator/config.pm
patch
|
blob
|
history
diff --git
a/lib/PXElator/config.pm
b/lib/PXElator/config.pm
index
4bf5816
..
5cf688a
100644
(file)
--- a/
lib/PXElator/config.pm
+++ b/
lib/PXElator/config.pm
@@
-24,6
+24,7
@@
sub available { qw/
openvz printer wrt
clonezilla ubuntu memdisk vyatta android
systemrescue
openvz printer wrt
clonezilla ubuntu memdisk vyatta android
systemrescue
+ memtest
/ };
sub debian_live {
/ };
sub debian_live {
@@
-292,6
+293,23
@@
label systemrescue
});
}
});
}
+# 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 ) = @_;
write_file "$dir/tmp/inside.sh", $command;
sub in_chroot {
my ( $dir, $command ) = @_;
write_file "$dir/tmp/inside.sh", $command;