summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakTermServ
diff options
context:
space:
mode:
authorStew Benedict <stewb@mandriva.org>2004-02-25 20:15:50 +0000
committerStew Benedict <stewb@mandriva.org>2004-02-25 20:15:50 +0000
commit8343c4ac6b93bd1db95d46b520d6961465821e67 (patch)
tree2c90f50be06095b1fa0c4847f565aa66ade1f558 /perl-install/standalone/drakTermServ
parenta674733cfd92901ed228ca6be5326d3e09224245 (diff)
downloaddrakx-backup-do-not-use-8343c4ac6b93bd1db95d46b520d6961465821e67.tar
drakx-backup-do-not-use-8343c4ac6b93bd1db95d46b520d6961465821e67.tar.gz
drakx-backup-do-not-use-8343c4ac6b93bd1db95d46b520d6961465821e67.tar.bz2
drakx-backup-do-not-use-8343c4ac6b93bd1db95d46b520d6961465821e67.tar.xz
drakx-backup-do-not-use-8343c4ac6b93bd1db95d46b520d6961465821e67.zip
Don't let any kernel symlinks be visible for making NBIs.
Diffstat (limited to 'perl-install/standalone/drakTermServ')
-rwxr-xr-xperl-install/standalone/drakTermServ8
1 files changed, 6 insertions, 2 deletions
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;