default boot target from conf/
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 4 Jan 2010 22:43:03 +0000 (22:43 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 4 Jan 2010 22:43:03 +0000 (22:43 +0000)
lib/PXElator/pxelinux.pm

index e94acfb..abbca9a 100644 (file)
@@ -11,6 +11,7 @@ our $path_prefix;
 our $reboot_time; # 300 s
 
 use server;
+use client;
 use File::Slurp;
 use Carp qw/confess/;
 
@@ -48,7 +49,7 @@ sub config_for_ip {
 sub config_ip_boot {
        my ( $ip, $boot, $append ) = @_;
 
-       my $default;
+       my $default = client::conf $ip => 'default';
        my $config;
 
        foreach my $kernel ( glob "$boot/vmlinuz*" ) {