minor fixes
[automated-distro-installer] / fai-redep
index 9938c3bd639b22619aa2ebdce6495c853524aca3..eafb1dc6426caa9c9dadf1f64350de27ceb66215 100755 (executable)
--- a/fai-redep
+++ b/fai-redep
@@ -32,7 +32,7 @@ case $1 in
 esac
 
 host=${1:-faiserver}
-
+distro=$2
 
 # i use faiserver as a dns alias, but ssh key is associated with
 # a canonical hostname and we will have ssh warning spam unless we
@@ -55,7 +55,7 @@ tar -cz /p/c/machine_specific/*/filesystem/etc/ssh | \
 
 
 . /a/bin/distro-setup/pkgs
-pall+=($(/a/bin/buildscripts/emacs -p; /a/bin/distro-setup/distro-pkgs $2))
+pall+=($(/a/bin/buildscripts/emacs -p; /a/bin/distro-setup/distro-pkgs $distro))
 { echo PACKAGES install; echo "${pall[*]}"|sed 's/ /\n/g'; } | \
   ssh root@$faiserver_host dd of=/srv/fai/config/package_config/DESKTOP 2>/dev/null ||: # broken pipe