[linux-fai] preloading files to /tmp
Thomas Gebhardt
gebhardt at HRZ.Uni-Marburg.DE
Fri Jun 16 10:56:25 CEST 2000
Hi,
since there were no objections concerning my first posting, I
implemented my proposal into the install_packages script.
Now it is possible to preload a file into some directory of
the install client before installing a package, e.g.
(package config file for realplayer)
##################
PRELOAD http://<my-fai-server>/preload/rp7_linux20_libc6_i386_b2_rpm /root
PACKAGES install
realplayer
##################
This will load rp7_linux20_libc6_i386_b2_rpm into /tmp/target/root
(by wget) and install the realplayer package afterwards.
Kind regards, Thomas
-------------- next part --------------
--- install_packages.orig Thu Jun 15 14:32:28 2000
+++ install_packages Fri Jun 16 10:51:36 2000
@@ -50,6 +50,16 @@
&readconfig($filename) if -f $filename;
}
+foreach $entry (@preloadlist) {
+ my ($url, $directory) = @$entry;
+ $command = "wget -nv -P$FAI_ROOT/$directory $url";
+ print "$command\n" if $verbose;
+ $error = system $command; # get return code from system
+ if ($error != 0) {
+ warn "$0 ERROR: $? $error";
+ }
+}
+
foreach $type (@typelist) {
$packlist = join(' ',@{$list{$type}});
@@ -78,6 +88,7 @@
chomp;
next if /^#/;
next if /^\s*$/;
+ /^PRELOAD\s+([^\s]+)\s+([^\s]+)/ and push(@preloadlist, [$1, $2]),next;
/^PACKAGES\s+([^\s]+)/ and $type = $1,next;
warn "PACKAGES .. line missing in $filename\n" unless $type;
push @{$list{$type}}, split;
More information about the linux-fai
mailing list