From 8343c4ac6b93bd1db95d46b520d6961465821e67 Mon Sep 17 00:00:00 2001 From: Stew Benedict Date: Wed, 25 Feb 2004 20:15:50 +0000 Subject: Don't let any kernel symlinks be visible for making NBIs. --- perl-install/standalone/drakTermServ | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/standalone/drakTermServ b/perl-install/standalone/drakTermServ index 2af1c1e5a..a9d82412a 100755 --- a/perl-install/standalone/drakTermServ +++ b/perl-install/standalone/drakTermServ @@ -57,6 +57,12 @@ my $server_ip = get_ip_from_sys(); my $changes_made = 0; my $client_cfg = "/etc/dhcpd.conf.etherboot.clients"; my $tftpboot = "/var/lib/tftpboot"; +my @kernels = grep { /vmlinuz-/ } all("/boot"); +my $i = 0; +foreach (@kernels) { + splice(@kernels, $i, 1) if -l $_; + $i++; +} #- make sure terminal server and friends are installed my $ts = system("rpm -q terminal-server > /dev/null"); @@ -448,7 +454,6 @@ sub make_nbis() { my $buff = N("Creating net boot images for all kernels"); $in->ask_warn(N("Information"), N("This will take a few minutes.")); cursor_wait(); - my @kernels = grep { /vmlinuz-/ } all("/boot"); system("/usr/bin/mknbi-set -k /boot/$_") foreach @kernels; cursor_norm(); $buff .= "\n\n\t" . N("Done!"); @@ -662,7 +667,6 @@ sub make_boot() { sub make_nbi() { my $nbi_box; - my @kernels = grep { /vmlinuz-/ } all("/boot"); my $kernel; my $nic; -- cgit v1.2.1