diff --git a/xCAT-server/share/xcat/netboot/fedora12/genimage b/xCAT-server/share/xcat/netboot/fedora12/genimage index 07e80c171..0b9d6f93d 100755 --- a/xCAT-server/share/xcat/netboot/fedora12/genimage +++ b/xCAT-server/share/xcat/netboot/fedora12/genimage @@ -5,8 +5,6 @@ BEGIN } use lib "$::XCATROOT/lib/perl"; -use lib "../imgutils"; - use File::Basename; use File::Path; use File::Copy; @@ -14,6 +12,8 @@ use File::Find; use Getopt::Long; use Cwd qw(realpath); +use FindBin; +use lib "$FindBin::Bin/../imgutils"; use imgutils; #use strict; diff --git a/xCAT-server/share/xcat/netboot/rh/genimage b/xCAT-server/share/xcat/netboot/rh/genimage index 02034cde8..edec3ff89 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -5,8 +5,6 @@ BEGIN } use lib "$::XCATROOT/lib/perl"; -use lib "../imgutils"; - use File::Basename; use File::Path; use File::Copy qw/copy cp mv move/; @@ -15,6 +13,8 @@ use Getopt::Long; use Cwd qw(realpath); use File::Temp qw/mkdtemp/; +use FindBin; +use lib "$FindBin::Bin/../imgutils"; use imgutils; #use strict; diff --git a/xCAT-server/share/xcat/netboot/sles/genimage b/xCAT-server/share/xcat/netboot/sles/genimage index c55468fea..c49720438 100755 --- a/xCAT-server/share/xcat/netboot/sles/genimage +++ b/xCAT-server/share/xcat/netboot/sles/genimage @@ -5,8 +5,6 @@ BEGIN } use lib "$::XCATROOT/lib/perl"; -use lib "../imgutils"; - use File::Basename; use File::Path; use File::Copy qw/copy cp mv move/; @@ -15,6 +13,8 @@ use Getopt::Long; use Cwd qw(realpath); use File::Temp qw/mkdtemp/; +use FindBin; +use lib "$FindBin::Bin/../imgutils"; use imgutils; #use strict;